messagebox

HI:

I would like to know if I can use MessageBox() to report error message, when
writing DLL in the kernel mode ?
If not, what are the message notification for kernel mode dll ?

Thanks
Song

Hello, Er,!
You wrote on Wed, 27 Mar 2002 16:06:15 +0800:

ESM> I would like to know if I can use MessageBox() to report error
ESM> message, when writing DLL in the kernel mode ?
ESM> If not, what are the message notification for kernel mode dll ?

May be you need to use IoRaiseHardError or IoRaiseInformationalHardError?

Eugene.

First question: no, not really, but see IoRaiseHardError and
IoRaiseInformationalHardError.
Second question: log errors to the system error log.

-----Original Message-----
From: Er, Song Moong (XSSC SGP)
[mailto:xxxxx@xssc.sgp.xerox.com]
Sent: Wednesday, March 27, 2002 3:06 AM
To: NT Developers Interest List
Subject: [ntdev] messagebox

HI:

I would like to know if I can use MessageBox() to report
error message, when writing DLL in the kernel mode ? If not,
what are the message notification for kernel mode dll ?

Thanks
Song


You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
%%email.unsub%%

> I would like to know if I can use MessageBox() to report error message, when

writing DLL in the kernel mode ?

You cannot, unless you have a helper user-mode code which will do this.

If not, what are the message notification for kernel mode dll ?

IoRaiseInformationalHardError can help, but it is rather limited.

Max

FYI, IoRaiseHardError and IoRaiseInformationalHardError only exist in
ntddk.h, not in wdm.h.


Bill McKenzie

“Roddy, Mark” wrote in message news:xxxxx@ntdev…
>
> First question: no, not really, but see IoRaiseHardError and
> IoRaiseInformationalHardError.
> Second question: log errors to the system error log.
>
>
> > -----Original Message-----
> > From: Er, Song Moong (XSSC SGP)
> > [mailto:xxxxx@xssc.sgp.xerox.com]
> > Sent: Wednesday, March 27, 2002 3:06 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] messagebox
> >
> >
> > HI:
> >
> > I would like to know if I can use MessageBox() to report
> > error message, when writing DLL in the kernel mode ? If not,
> > what are the message notification for kernel mode dll ?
> >
> > Thanks
> > Song
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as:
> > xxxxx@stratus.com To unsubscribe send a blank email to
> > %%email.unsub%%
> >
>
>