Showing results for February 24, 2004 - The Old New Thing

Feb 24, 2004
Post comments count0
Post likes count0

What's so special about the desktop window?

Raymond Chen
Raymond Chen

The window returned by GetDesktopWindow() is very special, and I see people abusing it all over the place. For example, many functions in the shell accept a window handle parameter to be used in case UI is needed. IShellFolder::EnumObjects, for example. What happens if you pass GetDesktopWindow()? If UI does indeed need to be displaye...

Code