win32service.GetProcessWindowStation

PyHWINSTA = GetProcessWindowStation()

Returns a handle to calling process's current window station