Group: Window Station and Desktop - Library: user32
How to prevent users from accessing the Windows Desktop and from switching to other applications
BOOL SwitchDesktop(
HDESK hDesktop
);
DECLARE INTEGER SwitchDesktop IN user32;
INTEGER hDesktop
hDesktop [in] Handle to the desktop to be made visible and active. This handle is returned by the CreateDesktop and OpenDesktop functions.
If the function succeeds, the return value is nonzero.
See also: CreateDesktop, OpenDesktop.