Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event Log Seq Read Problem?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00406766
Message ID:
00406769
Views:
34
>I am getting an error 'Variable EVENT_LOG_SEQUENTIAL_READ Not Found'. I am running NT4/SP6a. What happened?
>
>
>DECLARE INTEGER OpenEventLog IN Advapi32.dll ;
>	STRING cComputerName, ;
>	STRING cLogName
>
>DECLARE INTEGER ReadEventLog IN AdvAPI32.dll ;
>	INTEGER lhEventLog, ;
>	INTEGER dwFlags, ;
>	STRING dwOffset, ;
>	STRING cBuffer, ;
>	INTEGER nBytesToRead, ;
>	STRING @ dwBytesRead, ;
>	STRING @ dwMinBytesNeeded
>
>lhEventLog = OpenEventLog("MYCOMPUTER","Security")
>lnBufferSize = 1024
>lcBuffer = REPLICATE(CHR(0), lnBufferSize)
>lcBytesRead = SPACE(4)
>lcBytesNeeded = SPACE(4)
>
>lnNumberofrecords = ReadEventLog(lhEventLog, ;
>		EVENTLOG_SEQUENTIAL_READ + EVENTLOG_FORWARDS_READ, ;
>		0, ;
>		@lcBuffer, ;
>		lnBufferSize, ;
>        @lcBytesRead, ;
>		@lcBytesNeeded)
>
>?"Buffer: ", lcBuffer
>
I don't see where you've defined the constants. Is there an include file.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform