Using Win32 functions in Visual FoxPro Image Gallery
Event Logging
..msdn
ClearEventLog
CloseEventLog
DeregisterEventSource
GetEventLogInformation
GetNumberOfEventLogRecords
GetOldestEventLogRecord
OpenEventLog
ReadEventLog
RegisterEventSource
ReportEvent
Code examples:
Reading entries from Event logs
Writing entries to custom Event Log
GetNumberOfEventLogRecords
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the number of records in the specified event log.
Code examples:
Writing entries to custom Event Log
Reading entries from Event logs
Declaration:
BOOL GetNumberOfEventLogRecords(
    HANDLE hEventLog,
    PDWORD NumberOfRecords
);
FoxPro declaration:
DECLARE INTEGER GetNumberOfEventLogRecords IN advapi32;
    INTEGER hEventLog,;
    LONG @NumberOfRecords
Parameters:
hEventLog
[in] A handle to the open event log. This handle is returned by the OpenEventLog or OpenBackupEventLog function.

NumberOfRecords
[out] A pointer to a variable that receives the number of records in the specified event log.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
hLog = OpenEventLog(NULL, "Application")

IF hLog <> 0
        STORE 0 TO nReccount, nRecno

        = GetNumberOfEventLogRecords(m.hLog, @nReccount)
        = GetOldestEventLogRecord(m.hLog, @nRecno)

        ? nReccount, nRecno

        = CloseEventLog(hLog)
ENDIF
Word Index links for the GetNumberOfEventLogRecords :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-02-10 12:26:03
Modified: 2007-02-10 12:28:51
Visited in last 7 days: 26
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.112.193)
17 sec.Function: 'SetSystemPowerState'
32 sec.Function: 'BeginUpdateResource'
50 sec.Function: 'mciGetDeviceID'
1.08 min.Function: 'EnumForms'
1.4 min.Function: 'midiOutShortMsg'
1.67 min.Function: 'ReadDirectoryChangesW'
1.98 min.Function: 'CreateEvent'
2.28 min.Function: 'CloseWindow'
Function group: 'Window'
2.58 min.Function: 'NetWkstaUserEnum'
2.87 min.Function: 'waveInPrepareHeader'
Google
Advertise here!