I'm working on perfecting this WriteEventLog function, seems that while it writes (See source code forum), there is something missing.
The error states that the event data could not be found (Raw data) but what does show is what I send TO the eventlog call.
So, knowing I am 99% there but with errors I go back and think to myself "Self, something is wrong"...
I am thinking that This call:
Must have the EVENTLOGRECORD type in it, do a movememory to get pointers etc...
The lpStrings as Long and lpRawData as Any kinda give that away...
SO, if I am not correct stop here me here..
Otherwise I move on to constructing an EVENTLOGRECORD type:
' TimeGenerated As Dword ' Seconds since 1-1-1970
' TimeWritten As Dword ' Seconds since 1-1-1970
How do I acquire seconds since 1-1-1970???
Wayne, this bud's for you...er, this codes' for you that is hehe.
Scott
------------------
Scott Turchin
MCSE, MCP+I
Computer Creations Software
http://www.tngbbs.com/ccs
The error states that the event data could not be found (Raw data) but what does show is what I send TO the eventlog call.
So, knowing I am 99% there but with errors I go back and think to myself "Self, something is wrong"...
I am thinking that This call:
Code:
ReportEvent(ByVal hEventLog As Long, ByVal wType As Long, _ ByVal wCategory As Long, ByVal dwEventID As Long, _ lpUserSid As Any, ByVal wNumStrings As Long, _ ByVal dwDataSize As Long, _ lpStrings As Long, lpRawData As Any) As Long
The lpStrings as Long and lpRawData as Any kinda give that away...
SO, if I am not correct stop here me here..
Otherwise I move on to constructing an EVENTLOGRECORD type:
' TimeGenerated As Dword ' Seconds since 1-1-1970
' TimeWritten As Dword ' Seconds since 1-1-1970
How do I acquire seconds since 1-1-1970???
Wayne, this bud's for you...er, this codes' for you that is hehe.
Scott
------------------
Scott Turchin
MCSE, MCP+I
Computer Creations Software
http://www.tngbbs.com/ccs
Comment