网站首页  计算机词典

请输入您要查询的字词:

 

字词 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
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/24 0:47:35