Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(shockme) Re: Weird Win32::EventLog Results

by shockme (Chaplain)
on Mar 19, 2002 at 15:51 UTC ( [id://152747]=note: print w/replies, xml ) Need Help??


in reply to Weird Win32::EventLog Results

This is an update on my progress. Having found no solution to my plight, I emailed one of the authors, Bret Giddings. Bret responded as follows:

Try

$event->{EventID} &= 0x0000ffff;

That should bring the number into the range the MS expect. I don't know why the API returns the wrong number. Microsoft seem to correct for it in the eventviewer - I guess if I ever do any more work on the EventLog module, I should too.

This modification resolved about 95% of the weirdness. There are still some anomalies, but the script is now much more useable.

If things get any worse, I'll have to ask you to stop helping me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152747]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-19 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found