Re: How to register Vendor-defined IOCTL fail message to Eventlog?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Do not use IOCTL codes as event ID codes.

The event ID code names much be declared in the .MC file, and then MC.EXE
will built a C header with them. Include this header your other files.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

"Haikun" <Haikun@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D4F6148C-6282-4F11-ACED-7B04C2B26397@xxxxxxxxxxxxxxxx
Hello Everyone:

In my device driver , I defined some vendor-defined IOCTL by CTL_CODE macro,
IOCTL value between 2048~4095. When the IOCTL return customize error code,
Windows Eventlog will add a record of ErrorMessage, but the message is
"IOCTL UNKNOW .........". How could I register some more useful message to
replase it ??

Thank you for your attention.!
Haikun


.



Relevant Pages

  • Re: IOCTL Codes
    ... When you call ioctl, the codes and ... > are passed to the ioctl function of the device driver associated with the ... drivers, it is conflicting with the lower TY/SIO layers of my driver. ...
    (comp.os.vxworks)
  • Re: _IOR/W with if_tun
    ... Generally speaking, the _IOR macro is used to define codes ... used for ioctl()s which set values into the ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Merge all files in a folder
    ... Thank for your assistance, your codes works excellently. ... another workbook, named "OLT" to a new sheet here. ... Another request is the the current macro will filter as: ... move it to start at A2 and name the Header column as Securities since the ...
    (microsoft.public.excel.programming)
  • Re: huffman header compression
    ... So far I think Elias gamma coding is the best method I've come up with, ... Uncompressed Header in bits.. ... and huffman codes the result. ... so this is a perfect example of a bijection between long and short ...
    (comp.compression)
  • Re: combining workspaces
    ... have same variables (in their declaration in header). ... their headers and in .C in B's workspace (which is a HERCULIAN ... considering the voluminosity of the codes). ... You just discovered why it's a good idea not to use file scope ...
    (comp.lang.c)