Re: interrupt notification
From: Paul G. Tobey [eMVP] (ptobey)
Date: 11/02/04
- Next message: Paul G. Tobey [eMVP]: "Re: QFE's ?"
- Previous message: Paul G. Tobey [eMVP]: "Re: How to use SHFullScreen function?"
- In reply to: bsqr_TSAT: "Re: interrupt notification"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 08:23:05 -0700
Or you might create a point-to-point message queue and send a different
message, depending on what the event was. You'd probably do this via a
DeviceIoControl() to your driver. Maybe it returns the queue handle or
maybe it generates a unique name for the queue and returns that, leaving the
queue creation to the application. Or, you might create a new class of
notifications and have the application call RequestDeviceNotifications().
Paul T.
"bsqr_TSAT" <TSatagaj at hotmail dot com> wrote in message
news:%236ey9xOwEHA.3320@TK2MSFTNGP14.phx.gbl...
> You could have your driver and your apps each create the same named event.
> After initializing, your app can WaitForSingleObject() on the event.
> When the interrupt occurs, your driver could set the event.
>
> BSQR_TSAT
>
>
>
> "Alain Roberge" <floroberge1@hotmail.com> wrote in message
> news:ED10FE9E-3591-4D1B-A78E-E15D6D24123D@microsoft.com...
>> Hi,
>> With WCE 5.0, i created a stream driver for my custom device in our
>> platform. This device generates interrupt. I create an IST routine that
>> receive the interrupts. All this functionnality work fine. But when an
>> interrupt occurs, the responsability of the driver is to notify the
>> applications. Depend of reason of the interrupt, the IST must send a
>> different notification to the aplpication.
>>
>> My question is: what is the best method for applications to register to
>> an
>> interrupt?
>> One method is to pass a handle to a window from my application to the
>> driver. The IST can lunch a PostMessage() function to notify application.
>> But this method needs a Window!!!
>>
>> Does anyone have other idea?
>> Thank you
>> Alain Roberge
>>
>>
>
>
- Next message: Paul G. Tobey [eMVP]: "Re: QFE's ?"
- Previous message: Paul G. Tobey [eMVP]: "Re: How to use SHFullScreen function?"
- In reply to: bsqr_TSAT: "Re: interrupt notification"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|