• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

DWM/changes to desktop access?

SunnyD

Belgian Waffler
I'm having issues being able to use GetDesktopWindow on Vista and Server 2008 - assumingly because of changes to the security model or DWM, but not sure which.

As a test, I wrote up a quick little app that grabs a screenshot of the desktop window using GetDesktopWindow() - simple stuff that has been done a million times really. The app works fine locally.

The catch!

In the context that the app is run remotely - IE: pushed over to the machine, and run as administrator via remote code (a service), all I get back is a black bitmap on Vista and 2008. On XP and earlier it happily grabs whatever is the currently visible desktop window. I vaguely remember something about the security changes partitioning all user spaces including the desktop off, but I haven't been able to find anything about it. I also suspect it may have something to do with DWM, but I'm less inclined there after testing that it can still grab the screen when run locally with the same code.

Anyone have any ideas or notes about this?
 
Back
Top