|
Works
like a champ. Thank you.
-Ken Foster
-----Original Message----- From: Scott
Campbell [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:41
AM To: Foster, Ken;
[EMAIL PROTECTED] Subject: RE: Weird event log
ids
Try "&"ing your
value with 0xffff, like this:
$event_id=
$EventData->{'EventID'} & 0xffff;
This should fix your
problem that you are seeing.
Scott Campbell
Senior Software
Developer
Somix Technologies
http://www.somix.com
-----Original
Message----- From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Foster, Ken Sent: Thursday, March 06,
2003 9:28
AM To:
'[EMAIL PROTECTED]' Subject: Weird event log
ids
I am
reading Event logs from a Windows XP PC, and the ID shown in my Perl
script is very different than the ID listed by Microsoft
or shown in their GUI tool. For example, when I look for event ID
1704, my perl script reports the ID as 1073743528; similarly, event
ID 1054 is reported by Perl as -1073740770. Any ideas on why this is
happening or how I can map the Perl numbers back to the original Microsoft ID?
|