Jump to content

Microsoft Event UDF


Emperor
 Share

Recommended Posts

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.au3

Example.au3

Link to comment
Share on other sites

@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 :wacko:

See you all later. :D

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...