First I was going to blast Compuware for NOT allowing KeReadStateEvent, or
KEvent.State(), in WDM compilations. THEN I find out that KeReadStateEvent
is only included in NtDdk.h and not included in WDM.H. Reading the DOCS for
the function I see that wdm.h is not specified in the write up for this
function call, but yet it is indeed defined in wdm.h. Checking it out I find
that using it in a WDM driver does indeed compile with no errors.
Is there some reason WDM cannot use KeReadStateEvent? I cannot fault
Compuware, darn it, for abiding by a strict interpretation of the docs.
–
Gary G. Little
“Gary G. Little” wrote in message
news:xxxxx@ntdev…
> First I was going to blast Compuware for NOT allowing KeReadStateEvent, or
> KEvent.State(), in WDM compilations. THEN I find out that KeReadStateEvent
> is only included in NtDdk.h and not included in WDM.H. Reading the DOCS
for
> the function I see that wdm.h is not specified in the write up for this
> function call, but yet it is indeed defined in wdm.h. Checking it out I
find
> that using it in a WDM driver does indeed compile with no errors.
>
> Is there some reason WDM cannot use KeReadStateEvent? I cannot fault
> Compuware, darn it, for abiding by a strict interpretation of the docs.
>
> –
> Gary G. Little
>
>
>
KeReadStateEvent could not be implemented on Win98/ME, and hence was not (at
least in the past) placed in wdm.h. I guess since no one cares much about
these old crufty OS now the prototype was added to wdm.h again (it is not in
wdm.h in the old Win2k DDK, yet in later DDKs it is in wdm.h).
Philip Lukidis
No, KeReadStateEvent() is implemented in Windows 98SE and Windows Me and is
referenced by NtQueryEvent(), but for some reason KeReadStateEvent() is not
exported…
----- Original Message -----
From: “Philip Lukidis”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Friday, August 27, 2004 2:52 AM
Subject: Re:[ntdev] KeReadStateEvent
> “Gary G. Little” wrote in message
> news:xxxxx@ntdev…
> > First I was going to blast Compuware for NOT allowing KeReadStateEvent,
or
> > KEvent.State(), in WDM compilations. THEN I find out that
KeReadStateEvent
> > is only included in NtDdk.h and not included in WDM.H. Reading the DOCS
> for
> > the function I see that wdm.h is not specified in the write up for this
> > function call, but yet it is indeed defined in wdm.h. Checking it out I
> find
> > that using it in a WDM driver does indeed compile with no errors.
> >
> > Is there some reason WDM cannot use KeReadStateEvent? I cannot fault
> > Compuware, darn it, for abiding by a strict interpretation of the docs.
> >
> > –
> > Gary G. Little
> >
> >
> >
> KeReadStateEvent could not be implemented on Win98/ME, and hence was not
(at
> least in the past) placed in wdm.h. I guess since no one cares much about
> these old crufty OS now the prototype was added to wdm.h again (it is not
in
> wdm.h in the old Win2k DDK, yet in later DDKs it is in wdm.h).
>
> Philip Lukidis
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@nival.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
----- Original Message -----
From: “Konstantin Manurin”
To: “Windows System Software Devs Interest List”
Sent: Friday, August 27, 2004 3:46 AM
Subject: Re: Re:[ntdev] KeReadStateEvent
> No, KeReadStateEvent() is implemented in Windows 98SE and Windows Me and
is
> referenced by NtQueryEvent(), but for some reason KeReadStateEvent() is
not
> exported…
>
>
[snip]
Oh, thanks for that info. I didn’t know it was supported in Win98/ME at
all. Not that I ever used it, I just thought I read it somewhere (probably
in Oney, 2nd ed.).
Philip Lukidis