Hello,

I am porting an device driver from CE 4.20 to 6.0 and need to install the
driver as a Kernel mode instead of User Mode.
I have been wrestling with this for a few days now and can not find any
information on how to do this. I need this device driver running in kernel
mode because about every 100 mSecs we make around 25 - 30 DeviceIOControl
calls into the driver to read some data of a PCI bus. With the driver
running in User Mode the system runs for a while and then just reboots. I
seem periodic failures error codes of 0x80070057 (The parameter is
incorrect.), I am guessing that the driver while running in UserMode can not
handle this amount of traffic from what I have read.

I have tried changing the "Flags" registry entry for the driver to have the
without success.

Any help that can be given would be great.

Thank you,
David Paradis

Re: Installing Device Driver in Kernel Mode by voidcoder

voidcoder
Wed Oct 31 15:53:40 PDT 2007


>> With the driver running in User Mode the system runs
>> for a while and then just reboots.

I don't see how this can be related to kernel or user
mode, but if you want it loaded in kernel mode just
add "K" flag to the *.bib entry for the driver DLL.


mydriver.dll $(releasedir)\mydriver.dll NK SHK



--
Oleg


Dave Paradis wrote:
> Hello,
>
> I am porting an device driver from CE 4.20 to 6.0 and need to install the
> driver as a Kernel mode instead of User Mode.
> I have been wrestling with this for a few days now and can not find any
> information on how to do this. I need this device driver running in kernel
> mode because about every 100 mSecs we make around 25 - 30 DeviceIOControl
> calls into the driver to read some data of a PCI bus. With the driver
> running in User Mode the system runs for a while and then just reboots. I
> seem periodic failures error codes of 0x80070057 (The parameter is
> incorrect.), I am guessing that the driver while running in UserMode can not
> handle this amount of traffic from what I have read.
>
> I have tried changing the "Flags" registry entry for the driver to have the
> without success.
>
> Any help that can be given would be great.
>
> Thank you,
> David Paradis
>
>