Collects log data in the same format as the Windows ReportEvent function, and passes it to the Windows machine for logging. A null UserID security ID is given.
BOOLEAN ReportEvent(
HANDLE hEventLog,
WORD wType,
Word wCategory,
DWORD dwEventID,
PSID lpUserSid,
WORD wNumStrings,
DWORD dwDataSize,
LPCTSTR* lpStrings,
LPVOID lpRawData);
);
hEventLog
wType
| Value | Code | Meaning |
|---|---|---|
| EVENTLOG_ERROR_TYPE | 0x0001 | Error event. |
| EVENTLOG_INFORMATION_TYPE | 0x0004 | Information event. |
| EVENTLOG_WARNING_TYPE | 0x0002 | Warning event. |
wCategory
dwEventID
lpUserSid
wNumStrings
lpStrings parameter. A value of 0 (zero) indicates that no strings exist.
dwDataSize
lpStrings
wNumStrings is 0 (zero).
lpRawData
dwDataSize parameter is 0 (zero). | Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.0 | intime/rt/include/winbase.h | windows.h | iwin32.lib |
Note
This function operates in the real-time portion of your application.
iwin32 API, iwin32 Overview