handle to the desktop associated:
GetThreadDesktop
Obtaining a handle to the desktop associated with the calling thread