Z
ztf86781163
Unregistered / Unconfirmed
GUEST, unregistred user!
需要uses哪个pas单元 : <br>事件记录体如下:<br>typedef struct _EVENTLOGRECORD { // evlr <br> DWORD Length; <br> DWORD Reserved; <br> DWORD RecordNumber; <br> DWORD TimeGenerated; <br> DWORD TimeWritten; <br> DWORD EventID; <br> WORD EventType; <br> WORD NumStrings; <br> WORD EventCategory; <br> WORD ReservedFlags; <br> DWORD ClosingRecordNumber; <br> DWORD StringOffset; <br> DWORD UserSidLength; <br> DWORD UserSidOffset; <br> DWORD DataLength; <br> DWORD DataOffset; <br> // <br> // Then follow: <br><br> // <br> // TCHAR SourceName[] <br> // TCHAR Computername[] <br> // SID UserSid <br> // TCHAR Strings[] <br> // BYTE Data[] <br> // CHAR Pad[] <br> // DWORD Length; <br> // <br>} EVENTLOGRECORD; <br><br>以及OpenEventLog一类的日志函数在那个pas单元中定义了,如果borland没定义的话,<br>也请告之一声,我重写就是了~~