What is an appropriate substitution for CopyMem?
This is gettign awefully complicated just to read an event log, but will be worth it for everyone when I'm done..
(Still on the event log problem)
------------------
Scott
This is gettign awefully complicated just to read an event log, but will be worth it for everyone when I'm done..
(Still on the event log problem)
Code:
Dim rBuff As EVENTLOGRECORD Local eBuff() As Byte Local StrucLen As Long Do While rBuff.RecordNumber < EvtRecNo ret = ReadEventLog(EventLogHwd, _ EvtReadFlags, _ rBuff.RecordNumber + 1, _ eBuff(0), 16384, rBytesRead, _ rBytesNeeded) If ret = 0 Then Exit Function eBytePointer = 0 Do While eBytePointer < rBytesRead CopyMem rBuff, eBuff(eBytePointer), StrucLen
Scott
Comment