Group: Window Station and Desktop - Library: user32
How to prevent users from accessing the Windows Desktop and from switching to other applications
HDESK OpenInputDesktop(
DWORD dwFlags,
BOOL fInherit,
ACCESS_MASK dwDesiredAccess
); DECLARE INTEGER OpenInputDesktop IN user32;
LONG dwFlags,;
INTEGER fInherit,;
INTEGER dwDesiredAccess
dwFlags [in] This parameter can be 0 or 1.
fInherit [in] If this value is TRUE, new processes inherit the handle. Otherwise, this handle is not inherited.
dwDesiredAccess [in] Access to the desktop.
If the function succeeds, the return value is a handle to the desktop that receives user input.
When you are finished using the handle, call the CloseDesktop function to close it.
See also: CloseDesktop, SetProcessWindowStation, SwitchDesktop.
Home