GetThreadDesktop

  HDESK GetThreadDesktop(idThread)    
  DWORD idThread;    

The GetThreadDesktop function returns the handle of the desktop associated with the specified thread.

Parameters

idThread

Identifies the thread to return the desktop handle for.

Return Value

The return value is the handle of the desktop associated with the specified thread.

See Also

GetCurrentThreadId