get_process_window_station


handle get_process_window_station()

This function obtains the window station of the calling process.

Return

handle

null The function failed.
Other The handle of the window station of the calling process.

Notes

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.