 |
SwitchDesktop ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Makes a desktop visible and activates it. This enables the desktop to receive input from the user. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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. |
 |
 |
| Usage: |
 |
* use random name for new desktop
cNewdesktop = "desktop_" + SUBSTR(SYS(2015), 3)
hNewDesktop = CreateDesktop(cNewdesktop,;
0,0,0, GENERIC_ALL, 0)
= SetThreadDesktop(m.hNewDesktop)
= SwitchDesktop(m.hNewDesktop)
|
 |
 |
| My comment: |
 |
See also: CreateDesktop, OpenDesktop
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2005-09-04 16:21:56 | | Modified: | 2008-01-05 11:35:22 | Visited in last 7 days: 9 |