网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhcloselog
释义 PdhCloseLog
语法:
C++
PDH_STATUS PdhCloseLog(
__in PDH_HLOG hLog,
__in DWORD dwFlags
);
PdhCloseLog功能
关闭指定的日志文件。
参数
hLog [in]
处理日志文件被关闭。这种处理是由PdhOpenLog函数返回。
dwFlags [in]
您可以指定下列标志。
ValueMeaning
PDH_FLAGS_CLOSE_QUERYCloses与指定的日志文件处理有关的查询。见PdhOpenLog hQuery参数。
返回值
如果函数成功,它返回ERROR_SUCCESS和关闭并删除查询。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。下面是一个可能的值。
返回codeDescription
PDH_INVALID_HANDLEThe日志文件句柄无效。
实例
有关示例,请参见性能数据写入到一个日志文件。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhOpenLog
PdhBindInputDataSource
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhCloseLog Function
Closes the specified log file.
Syntax
C++
PDH_STATUS PdhCloseLog(
__in PDH_HLOG hLog,
__in DWORD dwFlags
);
Parameters
hLog [in]
Handle to the log file to be closed. This handle is returned by the PdhOpenLog function.
dwFlags [in]
You can specify the following flag.
ValueMeaning
PDH_FLAGS_CLOSE_QUERYCloses the query associated with the specified log file handle. See the hQuery parameter of PdhOpenLog.

Return Value
If the function succeeds, it returns ERROR_SUCCESS and closes and deletes the query.
If the function fails, the return value is a system error code or a PDH error code . The following is a possible value.
Return codeDescription
PDH_INVALID_HANDLEThe log file handle is not valid.

Examples
For an example, see Writing Performance Data to a Log File .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhOpenLog
PdhBindInputDataSource
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372552(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:23:46