网站首页  词典首页

请输入您要查询的函数:

 

术语 getnumberofeventlogrecords
释义 GetNumberOfEventLogRecords
语法:
C++
BOOL GetNumberOfEventLogRecords(
__in HANDLE hEventLog,
__out PDWORD NumberOfRecords
);
GetNumberOfEventLogRecords功能
检索人数,指定事件日志记录。
参数
hEventLog [in]
句柄到打开事件日志。在OpenEventLog或OpenBackupEventLog函数返回此句柄。
NumberOfRecords [out]
一个变量,它接收的记录在指定的事件日志数指针。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在事件日志记录的最古老的不一定是记录编号1。要确定在一个事件日志中记录的最古老的数量,使用GetOldestEventLogRecord功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
参见
事件记录功能
GetOldestEventLogRecord
OpenBackupEventLog
OpenEventLog
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==GetNumberOfEventLogRecords Function
Retrieves the number of records in the specified event log.
Syntax
C++
BOOL GetNumberOfEventLogRecords(
__in HANDLE hEventLog,
__out PDWORD NumberOfRecords
);
Parameters
hEventLog [in]
A handle to the open event log. The OpenEventLog or OpenBackupEventLog function returns this handle.
NumberOfRecords [out]
A pointer to a variable that receives the number of records in the specified event log.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The oldest record in an event log is not necessarily record number 1. To determine the oldest record number in an event log, use the GetOldestEventLogRecord function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
See Also
Event Logging Functions
GetOldestEventLogRecord
OpenBackupEventLog
OpenEventLog
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363664(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:27:14