hi ,
How can I register a callback in application which is to be called from a
driver (for eg: serial driver) ?
Please help me...
regards
Ajith

Re: Driver - Application communication by Steve

Steve
Mon Sep 01 05:47:39 CDT 2003

Note that in Windows CE the driver runs in the device.exe process
and thus you cannot just callback from that process to your
application process.

Instead, have a named event created with CreateEvent used by
both the driver and the application. When the driver has data
that the application wants, the driver signal the event. The
application always waits for this event, and once it signals,
the application calls some special IOCTL to get the data it
needs.



"Ajith" <kpajithkp@hotmail.com> wrote
> hi ,
> How can I register a callback in application which is to be called from a
> driver (for eg: serial driver) ?
> Please help me...
> regards
> Ajith
>
>



Re: Driver - Application communication by Ajith

Ajith
Mon Sep 01 06:14:26 CDT 2003

Thank you very much Steve ...
"Windows CE the driver runs in the device.exe process and thus you cannot
just callback from that process to your application process".
Can you explain this in detail ?.Kernal mode - user mode problem ?
I have read that WinCE driver is in user mode.
Expecting response
Ajith

"Steve" <nospam@nospam.com> wrote in message
news:OjQS5ZHcDHA.2416@TK2MSFTNGP10.phx.gbl...
> Note that in Windows CE the driver runs in the device.exe process
> and thus you cannot just callback from that process to your
> application process.
>
> Instead, have a named event created with CreateEvent used by
> both the driver and the application. When the driver has data
> that the application wants, the driver signal the event. The
> application always waits for this event, and once it signals,
> the application calls some special IOCTL to get the data it
> needs.
>
>
>
> "Ajith" <kpajithkp@hotmail.com> wrote
> > hi ,
> > How can I register a callback in application which is to be called from
a
> > driver (for eg: serial driver) ?
> > Please help me...
> > regards
> > Ajith
> >
> >
>
>



Re: Driver - Application communication by richmogd

richmogd
Mon Sep 01 22:47:46 CDT 2003

Hi Ajith,

I'm not sure if this is what you're after, but couldn't you have a
function in your driver that gets passed function pointers to your
callback functions and have your driver use these to implement the
callback? Just pass them as void pointers and then cast them in your
driver to whatever the correct function prototype is.

Regards,

Glenn.

In article <uhp1pNHcDHA.2932@tk2msftngp13.phx.gbl>,
kpajithkp@hotmail.com says...
> hi ,
> How can I register a callback in application which is to be called from a
> driver (for eg: serial driver) ?
> Please help me...
> regards
> Ajith
>
>
>

Re: Driver - Application communication by Steve

Steve
Tue Sep 02 04:18:05 CDT 2003

Given that the driver and the application are different
processes that would not be possible.




"Glenn" <richmogd@hotmail.com> wrote in message
news:MPG.19beda091ac3c42f989687@news.microsoft.com...
> Hi Ajith,
>
> I'm not sure if this is what you're after, but couldn't you have a
> function in your driver that gets passed function pointers to your
> callback functions and have your driver use these to implement the
> callback? Just pass them as void pointers and then cast them in your
> driver to whatever the correct function prototype is.
>
> Regards,
>
> Glenn.
>
> In article <uhp1pNHcDHA.2932@tk2msftngp13.phx.gbl>,
> kpajithkp@hotmail.com says...
> > hi ,
> > How can I register a callback in application which is to be called from a
> > driver (for eg: serial driver) ?
> > Please help me...
> > regards
> > Ajith
> >
> >
> >