Scott, for those of us math-impaired readers, could you explain what's happening?
 
\\Greg
-----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?

 

Thanks.

 

-Ken Foster

 




**************************************************************************

This e-mail and any files transmitted with it may contain privileged or

confidential information. It is solely for use by the individual for whom

it is intended, even if addressed incorrectly. If you received this e-mail

in error, please notify the sender; do not disclose, copy, distribute, or

take any action in reliance on the contents of this information; and delete

it from your system. Any other use of this e-mail is prohibited. Thank you

for your compliance.




Reply via email to