Assigns the specified desktop to the calling thread
#include <WinAPIProc.au3>
_WinAPI_SetThreadDesktop ( $hDesktop )
$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. |
Success: | True |
Failure: | False |
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).
Search SetThreadDesktop in MSDN Library.