函数参考


_WinAPI_SetThreadDesktop

Assigns the specified desktop to the calling thread.

#Include <WinAPIEx.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.

返回值

成功: 返回 1.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

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).

相关

详情参考

在MSDN中搜索