win32service.GetUserObjectInformation
GetUserObjectInformation(Handle, type)
Returns specified type of info about a window station or desktop
Parameters
Handle : PyHANDLE
Handle to window station or desktoptype : int
Type of info to return, one of UOI_FLAGS,UOI_NAME, UOI_TYPE, or UOI_USER_SIDReturn Value
Return type is dependent on UOI_* constant passed in