win32service.GetThreadDesktop

PyHDESK = GetThreadDesktop(ThreadId)

Retrieves a handle to the desktop for a thread

Parameters

ThreadId : int

Id of thread