|
-
Sep 13th, 2001, 01:59 AM
#1
Thread Starter
Member
ReadEventLog
I am using a Win API ~ ReadEventLog that reads a whole number of entries from the specified event log.
""Private Declare Function ReadEventLog Lib "advapi32.dll" Alias "ReadEventLogA" (ByVal hEventLog As Long, ByVal dwReadFlags As Long, ByVal dwRecordOffset As Long, lpBuffer As EVENTLOGRECORD, ByVal nNumberOfBytesToRead As Long, pnBytesRead As Long, pnMinNumberOfBytesNeeded As Long) As Long""
The second parameter is the flag. Through MSDN, I found a few constants but I am not sure if I have to assigned it to a value. There constants are :
==> EVENTLOG_FORWARDS_READ
==> EVENTLOG_SEQUENTIAL_READ
When I run it, the value of these constants are empty. So, I wonder if I should assign value to them.
The return value to the ReadEventLog is 0. Can anyone guide me on this? Before this, I already use OpenEventLog to get
its handle and successful at it.
Can anyone give any example on how to put the correct parameter or any tips?
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|