win32service.OpenDesktop

PyHDESK = OpenDesktop(szDesktop, Flags , Inherit , DesiredAccess )

Opens a handle to a desktop

Parameters

szDesktop : str/unicode

Name of desktop to open

Flags : int

DF_ALLOWOTHERACCOUNTHOOK or 0

Inherit : bool

Allow handle to be inherited

DesiredAccess : int

ACCESS_MASK specifying level of access for handle