术语 | addmonitor |
释义 | AddMonitor 语法: BOOL AddMonitor( __in LPTSTR pName, __in DWORD Level, __in LPBYTE pMonitors ); AddMonitor功能 该AddMonitor函数安装一个本地端口监视器和链接配置,数据和监测档案。 参数 pName [in] 一个指向 null 结尾的字符串指针,指定在其上应安装监控服务器的名称。对于系统只支持本地安装的显示器,该字符串应该是空。 Level [in] 该结构的pMonitors点的版本。此值必须是2。 pMonitors [in] 一个 MONITOR_INFO_2结构的指针。如果pMonitors结构pEnvironment成员为NULL,则调用者(客户端),在目标(服务器),而不是目前的环境使用。 请注意,调用将失败,如果环境不匹配的服务器环境,也就是说,您只能为服务器添加一个监视器。 返回值 如果函数成功,返回值是一个非零值。 如果函数失败,返回值是零。 备注 调用者必须有相关权限。 前一个应用程序调用AddMonitor功能,所有文件的监测要求,必须复制到SYSTEM32目录。 为了确定端口监视器当前安装的,调用EnumMonitors函数。 要删除由AddMonitor添加的监视器,调用DeleteMonitor函数。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinspool.h(头文件:winuser.h) LibraryWinspool.lib DLLSpoolss.dll Unicode和ANSI namesAddMonitorW(Unicode)和AddMonitorA(ANSI)的 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 DeleteMonitor EnumMonitors MONITOR_INFO_2 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==AddMonitor Function The AddMonitor function installs a local port monitor and links the configuration, data, and monitor files. Syntax BOOL AddMonitor( __in LPTSTR pName, __in DWORD Level, __in LPBYTE pMonitors ); Parameters pName [in] A pointer to a null-terminated string that specifies the name of the server on which the monitor should be installed. For systems that support only local installation of monitors, this string should be NULL. Level [in] The version of the structure to which pMonitors points. This value must be 2. pMonitors [in] A pointer to a MONITOR_INFO_2 structure. If the pEnvironment member of the pMonitors structure is NULL, the current environment of the caller (client), not of the destination (server), is used. Note that the call will fail if the environment does not match the environment of the server, that is, you can only add a monitor that was written for the architecture of the server. Return Value If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero. Remarks The caller must have the SeLoadDriverPrivilege . Before an application calls the AddMonitor function, all files required by the monitor must be copied to the SYSTEM32 directory. To determine the port monitors that are currently installed, call the EnumMonitors function. To remove a monitor added by AddMonitor, call the DeleteMonitor function. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinspool.h (include Windows.h) LibraryWinspool.lib DLLSpoolss.dll Unicode and ANSI namesAddMonitorW (Unicode) and AddMonitorA (ANSI) See Also Printing and Print Spooler Overview Printing and Print Spooler Functions DeleteMonitor EnumMonitors MONITOR_INFO_2 Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd183341(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。