网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhupdatelog
释义 PdhUpdateLog
语法:
C++
PDH_STATUS PdhUpdateLog(
__in PDH_HLOG hLog,
__in LPCTSTR szUserString
);
PdhUpdateLog功能
收集当前计数器数据查询和数据写入到日志文件。
参数
hLog [in]
处理一个日志文件进行更新。该PdhOpenLog函数返回此句柄。
szUserString [in]
空结束的字符串,其中包含一个用户定义的评论添加到数据记录。该字符串可以是空的。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_INVALID_HANDLEThe日志文件句柄无效。
PDH_INVALID_ARGUMENTA空字符串的议案获得通过szUserString参数。
备注
如果您是从另一个更新日志文件的日志文件,从其他日志文件的意见,不迁移。
实例
有关示例,请参见性能数据写入到一个日志文件。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
Unicode和ANSI namesPdhUpdateLogW(Unicode)和PdhUpdateLogA(ANSI)的
参见
PdhGetLogFileSize
PdhOpenLog
PdhOpenQuery
PdhUpdateLogFileCatalog
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhUpdateLog Function
Collects counter data for the current query and writes the data to the log file.
Syntax
C++
PDH_STATUS PdhUpdateLog(
__in PDH_HLOG hLog,
__in LPCTSTR szUserString
);
Parameters
hLog [in]
Handle of a single log file to update. The PdhOpenLog function returns this handle.
szUserString [in]
Null-terminated string that contains a user-defined comment to add to the data record. The string can be empty.
Return Value
If the function succeeds, it returns ERROR_SUCCESS.
If the function fails, the return value is a system error code or a PDH error code . The following are possible values.
Return codeDescription
PDH_INVALID_HANDLEThe log file handle is not valid.
PDH_INVALID_ARGUMENTA null string was passed in the szUserString parameter.

Remarks
If you are updating a log file from another log file, the comments from the other log file do not migrate.
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
Unicode and ANSI namesPdhUpdateLogW (Unicode) and PdhUpdateLogA (ANSI)
See Also
PdhGetLogFileSize
PdhOpenLog
PdhOpenQuery
PdhUpdateLogFileCatalog
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372679(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:42