Function Reference


_WinAPI_SetThreadDesktop

Assigns the specified desktop to the calling thread

#include <WinAPIProc.au3>
_WinAPI_SetThreadDesktop ( $hDesktop )

Parameters

$hDesktop Handle to the desktop to be assigned to the calling thread. This desktop must be associated with the
current window station for the process.

Return Value

Success: True
Failure: False

Remarks

The _WinAPI_SetThreadDesktop() function will fail if the calling thread has any windows or hooks on its current
desktop (unless the $hDesktop parameter is a handle to the current desktop).

See Also

Search SetThreadDesktop in MSDN Library.