 |
GetThreadDesktop ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetThreadDesktop function retrieves a handle to the desktop associated with a specified thread. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HDESK GetThreadDesktop(
DWORD dwThreadId // thread identifier
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetThreadDesktop IN user32;
INTEGER dwThreadId
|
 |
 |
 |
| Parameters: |
 |
dwThreadId
[in] Handle to the thread for which to return the desktop handle. The GetCurrentThreadId and CreateProcess functions return thread identifiers. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a handle to the desktop associated with the specified thread. |
 |
 |
| Usage: |
 |
LOCAL nThreadId, hDesktop
nThreadId = GetCurrentThreadId()
hDesktop = GetThreadDesktop(m.nThreadId)
|
 |
 |
| My comment: |
 |
| Windows 95/98/Me: The system does not support multiple desktops, so GetThreadDesktop always returns the same value. |
 |
 |
| Word Index links for the GetThreadDesktop : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-01-02 18:20:57 | | Modified: | 2008-01-05 11:29:39 | Visited in last 7 days: 23 |