Path: news.mitre.org!blanket.mitre.org!philabs!newsjunkie.ans.net!newsfeeds.ans.net!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-peer.sprintlink.net!news-sea-19.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!206.63.63.70!nwnews.wa.com!brokaw.wa.com!not-for-mail From: rsc@halcyon.com (Randy Sales) Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode Subject: Re: Notifying a user app ?? Date: Thu, 20 Nov 1997 22:09:00 GMT Organization: RS Consulting Lines: 31 Message-ID: <3474b2f0.349308484@news.halcyon.com> References: <3474AFAE.4520@cti-pet.com> Reply-To: rsc@halcyon.com NNTP-Posting-Host: evt-lx101-ip36.nwnexus.net X-Newsreader: Forte Free Agent 1.11/32.235 Johnny, Take a look at IoCreateNotificationEvent(). There's an example of it in the DDK source examples under src\general\async. I've used it very successfully to avoid polling for interrupt occurrences. There is a potential for not being able to access the event it creates for security reasons. To get around these I was forced to used ZwCreateEvent, an undocumented function. But you can also create the event from the application side and then open it from the device driver side. If you need an example of this, let me know. Randy Sales On Thu, 20 Nov 1997 16:46:22 -0500, Johnny Reed wrote: >I have a driver for an input device that has an interrupt associated >with an activity that may only come along once in a blue moon. I don't >want to poll the driver to see if that event has occurred. Is there a >way to notify a user process from the driver of such an event through a >dispatcher object or something similar to that. The timing is not super >critical. I would like to have a process that is sleeping that could be >awakened by the driver if the event does come along. > >Any help with this or any other suggestions of how to accomplish this >would be appreciated. > >Thanks, >Johnny