This function obtains the window station of the calling process.
|The function failed.
|The handle of the window station of the calling process.
When a process is created, the system assigns a window station to the process. Subsequently, a process may use the function set_process_window_station to change its window station.
The calling process may use the returned handle in calls to the functions:
A service is created with an associated window station and desktop. There is no need to call a windows or graphics function to connect the service to a window station and desktop.