Question

I'd like to play animations on the Windows desktop without relying on 3rd-party products such as StarDock DeskScapes or Windows DreamScene. What APIs should I look into?

Was it helpful?

Solution

you can read this thread... http://www.gamedev.net/community/forums/topic.asp?topic_id=113986

it is long, but in it, is a discussion of writing to the desktop...

hope this helps...

~Bolt

OTHER TIPS

I've never done this, but here's the approach I'd take.

  1. Inject a dll into explorer via SetWindowsHookEx.
  2. Grab a handle by using GetDesktopWindow.
  3. Subclass the Desktop using GetWindowLongPtr & SetWindowLongPtr.
  4. Do all your fancy rendering in the new WndProc you've hooked up.

Be aware that breaking the Desktop window will probably lock up your machine, as all its decedent windows (read: every window for that User) will likely be adversely affected.

Also, given the um rich compatibility history of Windows, be on the lookout for dummies meant to absorb abuse. In particular, I wouldn't be at all surprised if GetDesktopWindow does not in fact return the Desktop window you're looking for. You might have to do some digging with Spy++ or the like, basically.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top