 |
CloseDesktop ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Closes an open handle to a desktop object. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL CloseDesktop(
HDESK hDesktop
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CloseDesktop IN user32;
INTEGER hDesktop
|
 |
 |
 |
| Parameters: |
 |
hDesktop
[in] Handle to the desktop to be closed. This can be a handle returned by the CreateDesktop, OpenDesktop, or OpenInputDesktop functions. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
Do not specify the handle returned by the GetThreadDesktop function.
The CloseDesktop function will fail if any thread in the calling process is using the specified desktop handle or if the handle refers to the initial desktop of the calling process.
See also: CreateDesktop, OpenDesktop, OpenInputDesktop. |
 |
 |
| Word Index links for the CloseDesktop : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2005-09-04 16:10:52 | | Modified: | 2005-09-04 16:24:32 | Visited in last 7 days: 11 |