网站首页  词典首页

请输入您要查询的函数:

 

术语 setuserobjectinformation
释义 SetUserObjectInformation
语法:
C++
BOOL WINAPI SetUserObjectInformation(
__in HANDLE hObj,
__in int nIndex,
__in PVOID pvInfo,
__in DWORD nLength
);
SetUserObjectInformation功能
设置有关指定窗口站和桌面对象的信息。
参数
hObj [in]
句柄的窗口站和桌面对象。这种处理可以由CreateWindowStation,OpenWindowStation,CreateDesktop,或OpenDesktop函数返回。
nIndex [in]
对象的信息被设置。此参数可以是以下值。
ValueMeaning
UOI_FLAGS
1台对象的句柄标志。该pvInfo参数必须指向一个USEROBJECTFLAGS结构。
pvInfo [in]
一个缓冲区包含的对象信息的指针。
nLength [in]
在缓冲区中的资料大小指向pvInfo,以字节为单位。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
Unicode和ANSI namesSetUserObjectInformationW(Unicode)和SetUserObjectInformationA(ANSI)的
参见
CreateDesktop
CreateWindowStation
GetUserObjectInformation
OpenDesktop
OpenWindowStation
USEROBJECTFLAGS
窗口站和桌面功能
窗口站
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SetUserObjectInformation Function
Sets information about the specified window station or desktop object.
Syntax
C++
BOOL WINAPI SetUserObjectInformation(
__in HANDLE hObj,
__in int nIndex,
__in PVOID pvInfo,
__in DWORD nLength
);
Parameters
hObj [in]
A handle to the window station or desktop object. This handle can be returned by the CreateWindowStation , OpenWindowStation , CreateDesktop , or OpenDesktop function.
nIndex [in]
The object information to be set. This parameter can be the following value.
ValueMeaning
UOI_FLAGS
1Sets the object's handle flags. The pvInfo parameter must point to a USEROBJECTFLAGS structure.

pvInfo [in]
A pointer to a buffer containing the object information.
nLength [in]
The size of the information contained in the buffer pointed to by pvInfo, in bytes.
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 .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
Unicode and ANSI namesSetUserObjectInformationW (Unicode) and SetUserObjectInformationA (ANSI)
See Also
CreateDesktop
CreateWindowStation
GetUserObjectInformation
OpenDesktop
OpenWindowStation
USEROBJECTFLAGS
Window Station and Desktop Functions
Window Stations
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686287(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 11:29:54