Emperor Posted June 30, 2006 Share Posted June 30, 2006 This UDF reports errors and such to the Event Veiwer. ;=============================================================================== ; ; Function Name: _EventCreate() ; Description: Creates an event handle ; Parameter(s): $lpSourceName - Text shown under source in event veiwer ; Requirement(s): AutoIt Beta ; Return Value(s): On Success - Handle and @error = 0 ; On Failure - -1 and @error <> 0 ; Author(s): Emperor ; ;=============================================================================== ;=============================================================================== ; ; Function Name: _EventWrite() ; Description: Reports an event to the event log ; Parameter(s): $hEventLog - Handle of event ; $wType - Event type ; $lpStrings - Information to be included in report ; Requirement(s): AutoIt Beta ; Return Value(s): On Success - 1 and @error = 0 ; On Failure - -1 and @error <> 0 ; Author(s): Emperor ; ;=============================================================================== ;=============================================================================== ; ; Function Name: _EventClose() ; Description: Closes an event handle ; Parameter(s): $hEventLog - Handle of event ; Requirement(s): AutoIt Beta ; Return Value(s): On Success - 1 and @error = 0 ; On Failure - -1 and @error <> 0 ; Author(s): Emperor ; ;=============================================================================== ;=============================================================================== ; ; Function Name: _EventClear() ; Description: Clears an event handle ; Parameter(s): $hEventLog - Handle of event ; Requirement(s): AutoIt Beta ; Return Value(s): On Success - Nonzero and @error = 0 ; On Failure - -1 and @error <> 0 ; Author(s): Emperor ; ;=============================================================================== This being my first UDF any feedback would be appreciated. Also sorry if this has been done before, but I couldn't find anything like this using the forums search.Event.au3Example.au3 Link to comment Share on other sites More sharing options...
ptrex Posted June 30, 2006 Share Posted June 30, 2006 @Emperor Perfect just what I needed for my SMART applications. (See signature.) Neverheless. More functionality is needed. Like being able to log in APPLICATION or SYSTEM log. Setting a USER DEFINED ID NR. etc ... See my example in SMART application. You wan't be hearing back of me soon. I'm of for a 14 days holiday See you all later. Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now