网站首页  词典首页

请输入您要查询的函数:

 

术语 switchdesktop
释义 SwitchDesktop
语法:
C++
BOOL WINAPI SwitchDesktop(
__in HDESK hDesktop
);
SwitchDesktop功能
使指定的桌面可见光和激活它。这使得桌面接受用户输入。调用进程必须具有DESKTOP_SWITCHDESKTOP访问的SwitchDesktop功能桌面成功。
参数
hDesktop [in]
句柄到桌面上。这种处理是由CreateDesktop和OpenDesktop函数返回。
这桌面必须与该进程的当前窗口站。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。然而,SwitchDesktop只规定了在下列情况下的最后一个错误:
当桌面属于一种无形的窗口站
当hDesktop是一个无效的处理,是指毁坏桌面,或属于不同的会议比调用进程
备注
该SwitchDesktop函数失败如果桌面属于一种无形的窗口站。 SwitchDesktop也未能从1时,是与如在Winlogon桌面和屏保桌面担保关联的进程调用。这与有担保桌面相关的进程,包括自定义UserInit进程。这类电话通常失败,并出现“拒绝访问”错误。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
CreateDesktop
台式机
OpenDesktop
窗口站和桌面功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SwitchDesktop Function
Makes the specified desktop visible and activates it. This enables the desktop to receive input from the user. The calling process must have DESKTOP_SWITCHDESKTOP access to the desktop for the SwitchDesktop function to succeed.
Syntax
C++
BOOL WINAPI SwitchDesktop(
__in HDESK hDesktop
);
Parameters
hDesktop [in]
A handle to the desktop. This handle is returned by the CreateDesktop and OpenDesktop functions.
This desktop must be associated with the current window station for the process.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError . However, SwitchDesktop only sets the last error for the following cases:
When the desktop belongs to an invisible window station
When hDesktop is an invalid handle, refers to a destroyed desktop, or belongs to a different session than that of the calling process
Remarks
The SwitchDesktop function fails if the desktop belongs to an invisible window station. SwitchDesktop also fails when called from a process that is associated with a secured desktop such as the WinLogon and ScreenSaver desktops. Processes that are associated with a secured desktop include custom UserInit processes. Such calls typically fail with an "access denied" error.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
CreateDesktop
Desktops
OpenDesktop
Window Station and Desktop Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686347(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:29