Help for this page

Select Code to Download


  1. or download this
    Event Type:    Information
    Event Source:    MyAppName
    Event Category:    None
    ...
    Computer:    COMPUTER-NAME
    Description:
    The description for Event ID ( 0 ) in Source ( MyAppName ) cannot be f
    +ound. The local computer may not have the necessary registry informat
    +ion or message DLL files to display messages from a remote computer. 
    +You may be able to use the /AUXSOURCE= flag to retrieve this descript
    +ion; see Help and Support for details. The following information is p
    +art of the event: This is a test log entry..
    
  2. or download this
    use Win32::EventLog;
    
    ...
      EventType => EVENTLOG_INFORMATION_TYPE,
      Strings => qq(This is a test log entry.),
    });
    
  3. or download this
    MessageIdTypedef=WORD
    LanguageNames=(English=0x409:MSG00409)
    
    ...
    Language=English
    %1
    .
    
  4. or download this
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Applica
    +tion\MyAppName]
    "TypesSupported"=dword:00000007
    "CustomSource"=dword:00000001
    "EventMessageFile"="C:\\the-location-that-your-eventlog.dll-will-be-in
    +stalled\\EventLog.dll"
    
  5. or download this
    use Win32::EventLog;
    
    my $eventLog = Win32::EventLog->new('MyAppName');
    ...
    });
    
    $eventLog->Close();