Allan Crooks said:
> From: [EMAIL PROTECTED] (Allan Crooks)
> Newsgroups: comp.lang.python
> Subject: win32evtlog
> Date: 12 Feb 2002 03:38:27 -0800
>
> Hi,
>
> I understand that the win32evtlog.pyd file is also a dll file
> containing message strings which you can use.
>
> However, I'm not able to supply an eventID that works (to get the
> message string). Can someone suggest some values which might work?
>
> Allan.

Allan,

I've had the same problem with win32evtlog.pyd as a message file, so I
tried looking for the MESSAGETABLE resources in that file, and found
that there were none.

Looking through all the .pyd and .dll files in the Python22 directory
and its subdirectories, I found that only

        win32service.pyd
        perfmondata.dll

have MESSAGETABLE resources in them.

An examination of win32service.pyd shows the following messages:

        DLL: C:/Python22/Lib/site-packages/win32/win32service.pyd
        MESSAGETABLE: 1
        ------------------------------------------------------------------------
        msg: 0x00000001 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000002 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000003 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000004 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000005 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000006 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000007 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000008 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x00000009 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        ------------------------------------------------------------------------
        msg: 0x40000001 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000002 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000003 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000004 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000005 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000006 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000007 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000008 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x40000009 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        ------------------------------------------------------------------------
        msg: 0x80000001 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000002 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000003 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000004 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000005 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000006 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000007 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000008 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0x80000009 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        ------------------------------------------------------------------------
        msg: 0xc0000001 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000002 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000003 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000004 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000005 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000006 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000007 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000008 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'
        msg: 0xc0000009 0x0010  0x0001  '%1<CR><LF><NUL><NUL>'

Registering C:/Python22/Lib/site-packages/win32/win32service.pyd and sending
messages with the IDs shown above all seemed to show up as expected in
EventViewer.
===================================
Robert L. Oelschlaeger
Comtrak Technologies, L.L.C.
5657 Campus Parkway, Suite 100
Florissant, Missouri 63042
Ph: 314-895-7613  Fax: 314-895-7650
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

Attachment: mtrc_dump.zip
Description: Zip compressed data

Reply via email to