网站首页  词典首页

请输入您要查询的函数:

 

术语 getguiresources
释义 GetGuiResources
语法:
C++
DWORD WINAPI GetGuiResources(
__in HANDLE hProcess,
__in DWORD uiFlags
);
GetGuiResources功能
检索句柄计数使用图形用户界面(GUI)的对象由指定的进程。
参数
hProcess [in]
句柄的进程。句柄必须有PROCESS_QUERY_INFORMATION访问权。有关更多信息,请参见过程的安全性和访问权限。
uiFlags [in]
图形用户界面对象类型。此参数可以是下列值之一。
ValueMeaning
GR_GDIOBJECTS
0Return的GDI对象计数。
GR_GDIOBJECTS_PEAK
2Return的GDI对象峰计数。
Windows Server 2008中,Windows Vista中的Windows Server 2003,和Windows XP/2000:此值不支持,直到Windows 7和Windows Server 2008 R2的。
GR_USEROBJECTS
1Return的用户对象的罪名。
GR_USEROBJECTS_PEAK
4Return的用户对象的峰计数。
Windows Server 2008中,Windows Vista中的Windows Server 2003,和Windows XP/2000:此值不支持,直到Windows 7和Windows Server 2008 R2的。
返回值
如果函数成功,返回值是计算句柄使用GUI对象的过程。如果没有GUI对象正在使用,返回值是零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
一个没有图形用户界面的过程中不使用图形界面的资源,因此,GetGuiResources将返回零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
CreateProcess的
GetCurrentProcess
OpenProcess
进程和线程函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetGuiResources Function
Retrieves the count of handles to graphical user interface (GUI) objects in use by the specified process.
Syntax
C++
DWORD WINAPI GetGuiResources(
__in HANDLE hProcess,
__in DWORD uiFlags
);
Parameters
hProcess [in]
A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION access right. For more information, see Process Security and Access Rights .
uiFlags [in]
The GUI object type. This parameter can be one of the following values.
ValueMeaning
GR_GDIOBJECTS
0Return the count of GDI objects.
GR_GDIOBJECTS_PEAK
2Return the peak count of GDI objects.
Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000: This value is not supported until Windows 7 and Windows Server 2008 R2.
GR_USEROBJECTS
1Return the count of USER objects.
GR_USEROBJECTS_PEAK
4Return the peak count of USER objects.
Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000: This value is not supported until Windows 7 and Windows Server 2008 R2.

Return Value
If the function succeeds, the return value is the count of handles to GUI objects in use by the process. If no GUI objects are in use, the return value is zero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
A process without a graphical user interface does not use GUI resources, therefore, GetGuiResources will return zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
CreateProcess
GetCurrentProcess
OpenProcess
Process and Thread Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683192(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:30:55