Hi All,
I am using the function KeReadStateEvent to check the state of an event.
However, when I compile the driver, I get an “undefined function”
message. I searched the OSR archives and found a mail to this effect
stating that this function is probably not a part of WDM and also does
not work on Windows 98. However there were no pointers on how to solve
this !(apart from using some other synchronization primitive)
My Question:
- If this function is not provided, how do I check the state of an
event (signalled OR not)?
- How do I test the state of an event on Windows 98?
Thanks in anticipation
Rahul Gupta
KeWaitForSingleObject will poll the event if you call it correctly. But I am
always confused by programmers who proclaim a need to poll the state of some
shared object like an event. What is the point? Any information you obtain
is unreliable.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of rahul gupta
Sent: Saturday, January 10, 2004 7:39 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] KeReadStateEvent - Undefined …
Hi All,
I am using the function KeReadStateEvent to check the state
of an event.
However, when I compile the driver, I get an “undefined function”
message. I searched the OSR archives and found a mail to this
effect stating that this function is probably not a part of
WDM and also does not work on Windows 98. However there were
no pointers on how to solve this !(apart from using some
other synchronization primitive)
My Question:
- If this function is not provided, how do I check the state
of an event (signalled OR not)?
- How do I test the state of an event on Windows 98?
Thanks in anticipation
Rahul Gupta
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
xxxxx@lists.osr.com
Hey! rahul,
Use KeWaitForSingleObject with the time out value set to 0, if it is set it will return success otherwise failure.
For 98 Same Fashion coz this function is supported by the WDM, so you will get that there also.
NOTE:please see previous postings of the ppl here they already gave the answers for various things like this.
Good Luck,
From: rahul gupta
>Reply-To: “Windows System Software Devs Interest List”
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] KeReadStateEvent - Undefined …
>Date: 10 Jan 2004 18:08:33 +0530
>
>Hi All,
>
>I am using the function KeReadStateEvent to check the state of an event.
>However, when I compile the driver, I get an “undefined function”
>message. I searched the OSR archives and found a mail to this effect
>stating that this function is probably not a part of WDM and also does
>not work on Windows 98. However there were no pointers on how to solve
>this !(apart from using some other synchronization primitive)
>
>My Question:
>1. If this function is not provided, how do I check the state of an
>event (signalled OR not)?
>2. How do I test the state of an event on Windows 98?
>
>Thanks in anticipation
>
>Rahul Gupta
>
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
Feeling like a vacation? Then you are in the right place. Get the best travel deals here!
> 2. How do I test the state of an event on Windows 98?
Wait with zero timeout, as usually.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
Hi Rahul,
You can changes some code of your driver.
using this KeWaitForMultipleObjects or callback , u can check your event
state ?
If you send the detail about problem then I can help you more.
Thanks
Pradeep
-----Original Message-----
From: rahul gupta [mailto:xxxxx@dcmtech.co.in]
Sent: Saturday, January 10, 2004 6:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] KeReadStateEvent - Undefined …
Hi All,
I am using the function KeReadStateEvent to check the state of an event.
However, when I compile the driver, I get an “undefined function”
message. I searched the OSR archives and found a mail to this effect
stating that this function is probably not a part of WDM and also does
not work on Windows 98. However there were no pointers on how to solve
this !(apart from using some other synchronization primitive)
My Question:
- If this function is not provided, how do I check the state of an
event (signalled OR not)?
- How do I test the state of an event on Windows 98?
Thanks in anticipation
Rahul Gupta
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: pmishra@in.rainbow.com
To unsubscribe send a blank email to xxxxx@lists.osr.com