网站首页  词典首页

请输入您要查询的函数:

 

术语 pdhgetlogfilesize
释义 PdhGetLogFileSize
语法:
C++
PDH_STATUS PdhGetLogFileSize(
__in PDH_HLOG hLog,
__out LONGLONG *llSize
);
PdhGetLogFileSize功能
返回指定的日志文件的大小。
参数
hLog [in]
处理日志文件。在PdhOpenLog或PdhBindInputDataSource函数返回此句柄。
llSize [out]
大小的日志文件,以字节为单位。
返回值
如果函数成功,它返回ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码或一种PDH错误代码。以下是可能的值。
返回codeDescription
PDH_LOG_FILE_OPEN_ERRORAn时出错试图打开日志文件。
PDH_INVALID_HANDLEThe句柄无效。
备注
如果日志文件句柄指向多个约束日志文件,大小是所有的日志文件的总和。如果日志文件是一个SQL日志文件,llSize参数是记录在日志文件数目。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
参见
PdhOpenLog
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月23日
==英文原文==PdhGetLogFileSize Function
Returns the size of the specified log file.
Syntax
C++
PDH_STATUS PdhGetLogFileSize(
__in PDH_HLOG hLog,
__out LONGLONG *llSize
);
Parameters
hLog [in]
Handle to the log file. The PdhOpenLog or PdhBindInputDataSource function returns this handle.
llSize [out]
Size of the log file, in bytes.
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_LOG_FILE_OPEN_ERRORAn error occurred when trying to open the log file.
PDH_INVALID_HANDLEThe handle is not valid.

Remarks
If the log file handle points to multiple bound log files, the size is the sum of all the log files. If the log file is a SQL log file, the llSize parameter is the number of records in the log file.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPdh.h
LibraryPdh.lib
DLLPdh.dll
See Also
PdhOpenLog
Send comments about this topic to Microsoft
Build date: 7/23/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa372639(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 11:31:27