Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.06 KB

SwitchDesktop.md

File metadata and controls

48 lines (31 loc) · 1.06 KB

Home

Function name : SwitchDesktop

Group: Window Station and Desktop - Library: user32


Makes a desktop visible and activates it. This enables the desktop to receive input from the user.


Code examples:

How to prevent users from accessing the Windows Desktop and from switching to other applications

Declaration:

BOOL SwitchDesktop(
	HDESK hDesktop
);
  

FoxPro declaration:

DECLARE INTEGER SwitchDesktop IN user32;
	INTEGER hDesktop  

Parameters:

hDesktop [in] Handle to the desktop to be made visible and active. This handle is returned by the CreateDesktop and OpenDesktop functions.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

See also: CreateDesktop, OpenDesktop.