 |
SetThreadDesktop ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Assigns the specified desktop to the calling thread. All subsequent operations on the desktop use the access rights granted to hDesktop. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL SetThreadDesktop(
HDESK hDesktop
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetThreadDesktop IN user32;
INTEGER hDesktop
|
 |
 |
 |
| Parameters: |
 |
hDesktop
[in] Handle to the desktop to be assigned to the calling thread. This handle is returned by the CreateDesktop, GetThreadDesktop, OpenDesktop, or OpenInputDesktop function. |
 |
 |
| 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, GetThreadDesktop, OpenDesktop, SetProcessWindowStation |
 |
 |
| Word Index links for the SetThreadDesktop : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2005-09-04 16:20:04 | | Modified: | 2008-01-05 11:35:40 | Visited in last 7 days: 12 |