术语 | pdhclosequery |
释义 | PdhCloseQuery 语法: C++ PDH_STATUS PdhCloseQuery( __in PDH_HQUERY hQuery ); PdhCloseQuery功能 关闭指定的查询中包含的所有柜台,关闭所有处理有关的查询,并释放与查询相关联的所有内存。 参数 hQuery [in] 查询句柄关闭。这种处理是由PdhOpenQuery函数返回。 返回值 如果函数成功,它返回ERROR_SUCCESS。否则,该函数返回一个系统错误代码或一种PDH错误代码。 下面是一个可能的值。 返回codeDescription PDH_INVALID_HANDLEThe查询处理是无效的。 备注 不要使用计数器处理与此相关的调用这个函数后查询。 下面显示了语法,如果从Visual Basic中调用这个函数。 PdhCloseQuery( ByVal QueryHandle为Long ) 如龙 QueryHandle [in]标识查询关闭。该PdhVbOpenQuery函数返回的标识符。 实例 有关示例,请浏览性能计数器或读取日志文件的性能数据。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderPdh.h LibraryPdh.lib DLLPdh.dll 参见 PdhOpenQuery 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月23日 ==英文原文==PdhCloseQuery Function Closes all counters contained in the specified query, closes all handles related to the query, and frees all memory associated with the query. Syntax C++ PDH_STATUS PdhCloseQuery( __in PDH_HQUERY hQuery ); Parameters hQuery [in] Handle to the query to close. This handle is returned by the PdhOpenQuery function. Return Value If the function succeeds, it returns ERROR_SUCCESS. Otherwise, the function returns a system error code or a PDH error code . The following is a possible value. Return codeDescription PDH_INVALID_HANDLEThe query handle is not valid. Remarks Do not use the counter handles associated with this query after calling this function. The following shows the syntax if calling this function from Visual Basic. PdhCloseQuery( ByVal QueryHandle as Long ) as Long QueryHandle [in] Identifies the query to close. The PdhVbOpenQuery function returns the identifier. Examples For an example, see Browsing Performance Counters or Reading Performance Data from a Log File . Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderPdh.h LibraryPdh.lib DLLPdh.dll See Also PdhOpenQuery Send comments about this topic to Microsoft Build date: 7/23/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa372558(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。