Using Win32 functions in Visual FoxPro Image Gallery
Event Logging
..msdn
ClearEventLog
CloseEventLog
DeregisterEventSource
GetEventLogInformation
GetNumberOfEventLogRecords
GetOldestEventLogRecord
OpenEventLog
ReadEventLog
RegisterEventSource
ReportEvent
Code examples:
RegisterEventSource
..msdn    Add comment     W32 Constants      Translate this page
Retrieves a registered handle to the specified event log.
Code examples:
Declaration:
HANDLE RegisterEventSource(
  LPCTSTR lpUNCServerName,
  LPCTSTR lpSourceName
);
FoxPro declaration:
DECLARE INTEGER RegisterEventSource IN advapi32;
    STRING lpUNCServerName,;
    STRING lpSourceName
Parameters:
lpUNCServerName
[in] The Universal Naming Convention (UNC) name of the server on which this operation is to be performed. If this parameter is NULL, the operation is performed on the local computer.

lpSourceName
[in] The name of the event source whose handle is to be retrieved. The source name must be a subkey of a log under the Eventlog registry key.
However, the Security log is for system use only.
Return value:
If the function succeeds, the return value is a handle to the event log.
If the function fails, the return value is NULL.
My comment:
To close the handle to the event log, use the DeregisterEventSource function.
Word Index links for the RegisterEventSource :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-09-09 20:39:00
Modified: 2007-09-09 20:40:26
Visited in last 7 days: 11
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.86.177)
12 sec.
Function group: 'Window Property'
1 day(s)Function: 'waveInOpen'
 Function: 'WNetCancelConnection2'
 Function: 'SQLGetConnectAttr'
 Function: 'RemoveDirectory'
 Function: 'SQLDrivers'
 Function: 'ReleaseSemaphore'
 Function: 'WNetAddConnection'
 Function: 'waveOutWrite'
 Function: 'WSAGetLastError'
Google
Advertise here!