系统日志编程(50分)

  • 主题发起人 主题发起人 ztf86781163
  • 开始时间 开始时间
Z

ztf86781163

Unregistered / Unconfirmed
GUEST, unregistred user!
需要uses哪个pas单元 : <br>事件记录体如下:<br>typedef struct _EVENTLOGRECORD { // evlr &nbsp;<br> &nbsp; &nbsp;DWORD &nbsp;Length; <br>  DWORD &nbsp;Reserved; <br> &nbsp; &nbsp;DWORD &nbsp;RecordNumber; <br> &nbsp; &nbsp;DWORD &nbsp;TimeGenerated; <br> &nbsp; &nbsp;DWORD &nbsp;TimeWritten; <br> &nbsp; &nbsp;DWORD &nbsp;EventID; <br> &nbsp; &nbsp;WORD &nbsp; EventType; <br> &nbsp; &nbsp;WORD &nbsp; NumStrings; <br> &nbsp; &nbsp;WORD &nbsp; EventCategory; <br> &nbsp; &nbsp;WORD &nbsp; ReservedFlags; <br> &nbsp; &nbsp;DWORD &nbsp;ClosingRecordNumber; <br> &nbsp; &nbsp;DWORD &nbsp;StringOffset; <br> &nbsp; &nbsp;DWORD &nbsp;UserSidLength; <br> &nbsp; &nbsp;DWORD &nbsp;UserSidOffset; <br> &nbsp; &nbsp;DWORD &nbsp;DataLength; <br> &nbsp; &nbsp;DWORD &nbsp;DataOffset; <br> &nbsp; &nbsp;// <br> &nbsp; &nbsp;// Then follow: <br><br> &nbsp; &nbsp;// <br> &nbsp; &nbsp;// TCHAR SourceName[] <br> &nbsp; &nbsp;// TCHAR Computername[] <br> &nbsp; &nbsp;// SID &nbsp; UserSid <br> &nbsp; &nbsp;// TCHAR Strings[] <br> &nbsp; &nbsp;// BYTE &nbsp;Data[] <br> &nbsp; &nbsp;// CHAR &nbsp;Pad[] <br> &nbsp; &nbsp;// DWORD Length; <br> &nbsp; &nbsp;// <br>} EVENTLOGRECORD; <br><br>以及OpenEventLog一类的日志函数在那个pas单元中定义了,如果borland没定义的话,<br>也请告之一声,我重写就是了~~
 
学习一下。请问楼主,系统日志在我们编写的程序中,那种情况下使用?
 
www.source520.com 站长必进 2万源代码电子经典书狂下载
 
后退
顶部