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
GetEventLogInformation
..msdn    Add comment     W32 Constants      Translate this page
Retrieves information about the specified event log.
Code examples:
Reading entries from Event logs
Declaration:
BOOL GetEventLogInformation(
  HANDLE hEventLog,
  DWORD dwInfoLevel,
  LPVOID lpBuffer,
  DWORD cbBufSize,
  LPDWORD pcbBytesNeeded
);
FoxPro declaration:
DECLARE INTEGER GetEventLogInformation IN advapi32;
    INTEGER hEventLog,;
    LONG dwInfoLevel,;
    LONG @lpBuffer,;
    LONG cbBufSize,;
    LONG @pcbBytesNeeded
Parameters:
hEventLog
[in] A handle to the event log. This handle is returned by the OpenEventLog or RegisterEventSource function.

dwInfoLevel
[in] The level of event log information to be returned. Use EVENTLOG_FULL_INFO (0) to find out if the specified log is full.

lpBuffer
[out] A pointer to a buffer for the event log information. The format of this data depends on the value of the dwInfoLevel parameter.

cbBufSize
[in] The size of the buffer, in bytes.

pcbBytesNeeded
[out] A pointer to a variable that receives the number of bytes required for the requested information, regardless of whether the function succeeds. This parameter cannot be NULL.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
At this point, the EVENTLOG_FULL_INFORMATION contains only one member, which indicates whether the log is full.
Word Index links for the GetEventLogInformation :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-09-09 20:25:46
Modified: 2007-09-09 20:28:34
Visited in last 7 days: 12
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 (23.20.129.162)
5 sec.Function: 'GetFileInformationByHandle'
Function group: 'File Management'
11 sec.Function: 'SetLayeredWindowAttributes'
Function group: 'Window'
16 sec.
Function group: 'Path'
20 sec.
Function group: 'Setup API functions'
24 sec.Function: 'CeWriteRecordProps'
29 sec.Function: 'ReplaceFile'
Function group: 'File Management'
34 sec.Function: 'GetPriorityClass'
Function group: 'Process and Thread'
40 sec.Function: '_lclose'
Function group: 'File Management'
45 sec.Function: 'SetWindowText'
Function group: 'Window'
50 sec.Example: 'Storing screen shot of a form to bitmap file'
Google
Advertise here!