Opens the specified window station.
HWINSTA OpenWindowStationA( LPCSTR lpszWinSta, BOOL fInherit, ACCESS_MASK dwDesiredAccess );
The name of the window station to be opened. Window station names are case-insensitive.
This window station must belong to the current session.
If this value is TRUE, processes created by this process will inherit the handle. Otherwise, the processes do not inherit this handle.
The access to the window station. For a list of access rights, see Window Station Security and Access Rights.
If the function succeeds, the return value is the handle to the specified window station.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
After you are done with the handle, you must call CloseWindowStation to free the handle.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||winuser.h (include Windows.h)|