Using Win32 functions in Visual FoxPro Image Gallery
Event Logging
Code examples:
..msdn    Add comment     W32 Constants      Translate this page
Retrieves a registered handle to the specified event log.
Code examples:
HANDLE RegisterEventSource(
  LPCTSTR lpUNCServerName,
  LPCTSTR lpSourceName
FoxPro declaration:
DECLARE INTEGER RegisterEventSource IN advapi32;
    STRING lpUNCServerName,;
    STRING lpSourceName
[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.

[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 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: 36
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
2 sec.Function: 'CeDeleteRecord'
5 sec.Function: 'WNetEnumResource'
6 sec.Function: 'JetGotoBookmark'
9 sec.Function: 'OpenProcess'
11 sec.Function: 'CeRapiUninit'
13 sec.Function: 'midiOutGetDevCaps'
16 sec.Function: 'GetUserNameEx'
18 sec.Function: 'UrlMkGetSessionOption'
20 sec.Function: 'OpenClipboard'
22 sec.Function: 'mmioOpen'
Advertise here!