Still on the eventlog, the function I have returns:
lpBuffer as EVENTLOG
and so far returns everything correctly, which leads me to believe I do not have to parse the original byte record to get the data.
So far this is what I have, I have to modify the Win32api.inc file to make this work but it is so far:
Question: How do I get a BYTE array into the TYPE structure?
Specifically STRINGS, etc, and ComputerName is not yet working...
I'm going to do this the right way...hehe
------------------
Scott
lpBuffer as EVENTLOG
and so far returns everything correctly, which leads me to believe I do not have to parse the original byte record to get the data.
So far this is what I have, I have to modify the Win32api.inc file to make this work but it is so far:
Question: How do I get a BYTE array into the TYPE structure?
Specifically STRINGS, etc, and ComputerName is not yet working...
I'm going to do this the right way...hehe

Code:
TYPE EVENTLOGRECORD Length AS DWORD ' Length of full record Reserved AS DWORD ' Used by the service RecordNumber AS DWORD ' Absolute record number TimeGenerated AS DWORD ' Seconds since 1-1-1970 TimeWritten AS DWORD ' Seconds since 1-1-1970 EventID AS DWORD EventType AS WORD NumStrings AS WORD EventCategory AS WORD ReservedFlags AS WORD ' For use with paired events (auditing) ClosingRecordNumber AS DWORD ' For use with paired events (auditing) StringOffset AS DWORD ' Offset from beginning of record UserSidLength AS DWORD UserSidOffset AS DWORD DataLength AS DWORD DataOffset AS DWORD ' Offset from beginning of record SourceName As String * 17 ComputerName As String * 17 Strings As String * 255 ' ' Then follow: ' ' WCHAR SourceName[] ' WCHAR Computername[] ' SID UserSid ' WCHAR Strings[] ' BYTE Data[] ' CHAR Pad[] ' DWORD Length; END TYPE
------------------
Scott
Comment