网站首页  词典首页

请输入您要查询的函数:

 

术语 enummonitors
释义 EnumMonitors
语法:
BOOL EnumMonitors(
__in LPTSTR pName,
__in DWORD Level,
__out LPBYTE pMonitors,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded,
__out LPDWORD pcReturned
);
EnumMonitors功能
该EnumMonitors函数检索有关信息的端口监视器安装在指定的服务器上。
参数
pName [in]
一个指向 null 结尾的字符串指针,指定的服务器的监视居住的名称。如果该参数为NULL,本地监视器枚举。
Level [in]
结构的版本指向pMonitors。
该值可以是1或2。
pMonitors [out]
A到接收缓冲区的结构数组的指针。该缓冲区必须足够大的存储结构的成员引用的字符串。
要确定所需的缓冲区大小,请EnumMonitors设置为零cbBuf。 EnumMonitors失败,GetLastError返回ERROR_INSUFFICIENT_BUFFER和pcbNeeded参数返回的大小,以字节为单位须持有的结构及其数据数组中的缓冲区。
缓冲区收到的MONITOR_INFO_1结构的数组,如果是1级,或MONITOR_INFO_2结构,如果是2级。
cbBuf [in]
大小,指出以字节为缓冲区的pMonitors。
pcbNeeded [out]
一个变量,它接收复制的字节数,如果函数调用成功或所需的字节数,如果cbBuf太小指针。
pcReturned [out]
一个变量,它接收的是在缓冲区的指针返回结构的数目所指向pMonitors。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesEnumMonitorsW(Unicode)和EnumMonitorsA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
MONITOR_INFO_1
MONITOR_INFO_2
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumMonitors Function
The EnumMonitors function retrieves information about the port monitors installed on the specified server.
Syntax
BOOL EnumMonitors(
__in LPTSTR pName,
__in DWORD Level,
__out LPBYTE pMonitors,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded,
__out LPDWORD pcReturned
);
Parameters
pName [in]
A pointer to a null-terminated string that specifies the name of the server on which the monitors reside. If this parameter is NULL, the local monitors are enumerated.
Level [in]
The version of the structure pointed to by pMonitors.
This value can be 1 or 2.
pMonitors [out]
A pointer to a buffer that receives an array of structures. The buffer must be large enough to store the strings referenced by the structure members.
To determine the required buffer size, call EnumMonitors with cbBuf set to zero. EnumMonitors fails, GetLastError returns ERROR_INSUFFICIENT_BUFFER, and the pcbNeeded parameter returns the size, in bytes, of the buffer required to hold the array of structures and their data.
The buffer receives an array of MONITOR_INFO_1 structures if Level is 1, or MONITOR_INFO_2 structures if Level is 2.
cbBuf [in]
The size, in bytes, of the buffer pointed to by pMonitors.
pcbNeeded [out]
A pointer to a variable that receives the number of bytes copied if the function succeeds or the number of bytes required if cbBuf is too small.
pcReturned [out]
A pointer to a variable that receives the number of structures that were returned in the buffer pointed to by pMonitors.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesEnumMonitorsW (Unicode) and EnumMonitorsA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
MONITOR_INFO_1
MONITOR_INFO_2
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162631(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:20:30