HP Z620 HP Remote Graphics Software 5.4.7 - Page 227
GetNumberOfEventLogRecordsh, &dwCurrentCount == false, if GetOldestEventLogRecordh
View all HP Z620 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 227 highlights
// seconds. If seconds is less than zero, we will wait forever. for (waitedFor = 0; seconds < 0 || waitedFor < seconds; ) { HANDLE h; // Open, read status of log, close event log if ((h = OpenEventLog(eventServer, eventSource)) == NULL) { ... report error status here ... return; } // If an event is added, either the start or count will change. // Get the start and count. Microsoft does not specify what // reasons these functions could fail, so we cannot ensure // success. Check the return value. if (GetOldestEventLogRecord(h, &dwCurrentStart) == false || GetNumberOfEventLogRecords(h, &dwCurrentCount) == false) { CloseEventLog(h); ... report error - unable to obtain event logs ... return; } if (CloseEventLog(h) == false) { ... report error status here ... return; } // Determine state of log change Compute the index of the last event. If the count is zero, then // there are no events and the index is 0. if (dwCurrentCount == 0) { dwNewIndex = 0; } Sample Agent 211