Reference

ReportEventA(3w)

NAME

ReportEventA (ADVAPI32.@)

SYNOPSIS

BOOL ReportEventA
(
HANDLE hEventLog,
WORD wType,
WORD wCategory,
DWORD dwEventID,
PSID lpUserSid,
WORD wNumStrings,
DWORD dwDataSize,
LPCSTR* lpStrings,
LPVOID lpRawData
)

DESCRIPTION

Writes an entry at the end of an event log.

PARAMS

hEventLog [In] Handle of an event log.

wType [In] See MSDN doc.

wCategory [In] Event category.

dwEventID [In] Event identifier.

lpUserSid [In] Current user's security identifier.

wNumStrings [In] Number of insert strings in lpStrings.

dwDataSize [In] Size of event-specific raw data to write.

lpStrings [In] Buffer containing an array of string to be merged.

lpRawData [In] Buffer containing the binary data.

RETURNS

Success: nonzero. Entry was written to the log.

Failure: zero.

NOTES

The ReportEvent function adds the time, the entry's length, and the offsets before storing the entry in the log. If lpUserSid != NULL, the username is also logged.

IMPLEMENTATION

Declared in "winbase.h".

Implemented in "dlls/advapi32/eventlog.c".

Debug channel "advapi".

History