网站首页  词典首页

请输入您要查询的函数:

 

术语 openinputdesktop
释义 OpenInputDesktop
语法:
C++
HDESK WINAPI OpenInputDesktop(
__in DWORD dwFlags,
__in BOOL fInherit,
__in ACCESS_MASK dwDesiredAccess
);
OpenInputDesktop功能
打开桌面接收用户输入。
参数
dwFlags [in]
此参数可以是零或以下的价值。
ValueMeaning
DF_ALLOWOTHERACCOUNTHOOK
0x0001Allows进程中的其他帐户运行在桌面上设置钩子在这一进程中。
fInherit [in]
如果该值为TRUE,进程创建的这一进程将继承处理。否则,该进程不会继承此处理。
dwDesiredAccess [in]
到桌面访问。如需使用权名单见桌面安全和访问权限。
返回值
如果函数成功,返回值是一个句柄到桌面接收用户输入。当您使用完的处理,调用CloseDesktop函数将其关闭。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
调用进程必须有一个相应的窗口站,无论是在分配过程中创建时系统或SetProcessWindowStation集。窗口站与调用进程关联必须能够接收输入。
一个应用程序可以使用SwitchDesktop函数来更改输入桌面。
如果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
参见
CloseDesktop
台式机
SetProcessWindowStation
SwitchDesktop
窗口站和桌面功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==OpenInputDesktop Function
Opens the desktop that receives user input.
Syntax
C++
HDESK WINAPI OpenInputDesktop(
__in DWORD dwFlags,
__in BOOL fInherit,
__in ACCESS_MASK dwDesiredAccess
);
Parameters
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 desktop that receives user input. 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 SetProcessWindowStation . The window station associated with the calling process must be capable of receiving input.
An application can use the SwitchDesktop function to change the input desktop.
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
See Also
CloseDesktop
Desktops
SetProcessWindowStation
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/ms684309(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:43