网站首页  词典首页

请输入您要查询的函数:

 

术语 opendesktop
释义 OpenDesktop
语法:
C++
HDESK WINAPI OpenDesktop(
__in LPTSTR lpszDesktop,
__in DWORD dwFlags,
__in BOOL fInherit,
__in ACCESS_MASK dwDesiredAccess
);
OpenDesktop功能
打开指定的桌面对象。
参数
lpszDesktop [in]
桌面的名称被打开。桌面名称是区分大小写的。
这桌面必须属于当前窗口站。
dwFlags [in]
此参数可以是零或以下的价值。
ValueMeaning
DF_ALLOWOTHERACCOUNTHOOK
0x0001Allows进程中的其他帐户运行在桌面上设置钩子在这一进程中。
fInherit [in]
如果该值为TRUE,进程创建的这一进程将继承处理。否则,该进程不会继承此处理。
dwDesiredAccess [in]
到桌面访问。如需使用权名单见桌面安全和访问权限。
返回值
如果函数成功,返回值是一个句柄打开的桌面上。当您使用完的处理,调用CloseDesktop函数将其关闭。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
调用进程必须有一个相应的窗口站,无论是在分配过程中创建时的制度或SetProcessWindowStation函数集。
如果dwDesiredAccess参数指定次数READ_CONTROL,WRITE_DAC,或WRITE_OWNER标准访问权限,您还必须要求DESKTOP_READOBJECTS和DESKTOP_WRITEOBJECTS访问权限。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
Unicode和ANSI namesOpenDesktopW(Unicode)和OpenDesktopA(ANSI)的
参见
CloseDesktop
CreateDesktop
台式机
OpenInputDesktop
SetProcessWindowStation
SetThreadDesktop
SwitchDesktop
窗口站和桌面功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==OpenDesktop Function
Opens the specified desktop object.
Syntax
C++
HDESK WINAPI OpenDesktop(
__in LPTSTR lpszDesktop,
__in DWORD dwFlags,
__in BOOL fInherit,
__in ACCESS_MASK dwDesiredAccess
);
Parameters
lpszDesktop [in]
The name of the desktop to be opened. Desktop names are case-insensitive.
This desktop must belong to the current window station.
dwFlags [in]
This parameter can be zero or the following value.
ValueMeaning
DF_ALLOWOTHERACCOUNTHOOK
0x0001Allows processes running in other accounts on the desktop to set hooks in this process.

fInherit [in]
If this value is TRUE, processes created by this process will inherit the handle. Otherwise, the processes do not inherit this handle.
dwDesiredAccess [in]
The access to the desktop. For a list of access rights, see Desktop Security and Access Rights .
Return Value
If the function succeeds, the return value is a handle to the opened desktop. When you are finished using the handle, call the CloseDesktop function to close it.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The calling process must have an associated window station, either assigned by the system at process creation time or set by the SetProcessWindowStation function.
If the dwDesiredAccess parameter specifies the READ_CONTROL, WRITE_DAC, or WRITE_OWNER standard access rights, you must also request the DESKTOP_READOBJECTS and DESKTOP_WRITEOBJECTS access rights.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
Unicode and ANSI namesOpenDesktopW (Unicode) and OpenDesktopA (ANSI)
See Also
CloseDesktop
CreateDesktop
Desktops
OpenInputDesktop
SetProcessWindowStation
SetThreadDesktop
SwitchDesktop
Window Station and Desktop Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684303(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:24:38