Article ID: 198590
Article Last Modified on 3/21/2005
HDESK hdesk;
hdesk = GetThreadDesktop( GetCurrentThreadId() );
EnumDesktopWindows( hdesk, EnumProc, (LPARAM)hdesk );
.
.
.
return;
BOOL CALLBACK EnumProc( HWND hwnd, LPARAM lParam )
{
DWORD dwThreadId;
HDESK hdesk;
dwThreadId = GetWindowThreadProcessId( hwnd, NULL );
hdesk = GetThreadDesktop( dwThreadId );
if( hdesk && hdesk != (HDESK)lParam ) {
return FALSE;
} else {
// now certain this is the desktop we want to enumerate
.
.
.
}
return TRUE;
}
Additional query words: kbDSupport
Keywords: kbbug kbscreensaver kbpending KB198590