网站首页  词典首页

请输入您要查询的函数:

 

术语 geteventloginformation
释义 GetEventLogInformation
语法:
C++
BOOL GetEventLogInformation(
__in HANDLE hEventLog,
__in DWORD dwInfoLevel,
__out LPVOID lpBuffer,
__in DWORD cbBufSize,
__out LPDWORD pcbBytesNeeded
);
GetEventLogInformation功能
检索有关指定的事件日志。
参数
hEventLog [in]
句柄到事件日志。在OpenEventLog或RegisterEventSource函数返回此句柄。
dwInfoLevel [in]
在事件日志信息Level的回报。使用EVENTLOG_FULL_INFO找出如果指定的日志已满。该lpBuffer参数将包含EVENTLOG_FULL_INFORMATION结构。
lpBuffer [out]
一个应用程序分配的缓冲区,它接收事件日志信息。这些数据的格式取决于该dwInfoLevel参数的值。
cbBufSize [in]
该lpBuffer缓冲区的大小,以字节为单位。
pcbBytesNeeded [out]
该函数设置此参数为所要求的信息所需的缓冲区大小,无论函数成功。使用此值,如果函数ERROR_INSUFFICIENT_BUFFER无法拨出正确大小的缓冲区。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
参见
事件记录功能
EVENTLOG_FULL_INFORMATION
OpenEventLog
RegisterEventSource
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月6日
==英文原文==GetEventLogInformation Function
Retrieves information about the specified event log.
Syntax
C++
BOOL GetEventLogInformation(
__in HANDLE hEventLog,
__in DWORD dwInfoLevel,
__out LPVOID lpBuffer,
__in DWORD cbBufSize,
__out LPDWORD pcbBytesNeeded
);
Parameters
hEventLog [in]
A handle to the event log. The OpenEventLog or RegisterEventSource function returns this handle.
dwInfoLevel [in]
The level of event log information to return. Use EVENTLOG_FULL_INFO to find out if the specified log is full. The lpBuffer parameter will contain an EVENTLOG_FULL_INFORMATION structure.
lpBuffer [out]
An application-allocated buffer that receives the event log information. The format of this data depends on the value of the dwInfoLevel parameter.
cbBufSize [in]
The size of the lpBuffer buffer, in bytes.
pcbBytesNeeded [out]
The function sets this parameter to the required buffer size for the requested information, regardless of whether the function succeeds. Use this value if the function fails with ERROR_INSUFFICIENT_BUFFER to allocate a buffer of the correct size.
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 .
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
EVENTLOG_FULL_INFORMATION
OpenEventLog
RegisterEventSource
Send comments about this topic to Microsoft
Build date: 8/6/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363663(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:03