GetProcessWindowStation

  HWINSTA GetProcessWindowStation(VOID)    

The GetProcessWindowStation function returns a handle to the windowstation associated with the calling process.

Parameters

This function has no parameters.

Return Value

If the function is successful, the return value is a handle to the windowstation associated with the calling process.

If the function fails, the return value is NULL. This can occur if the process is not a Windows32 application. Use the GetLastError function to obtain extended error information.