Not able to load WDM driver

Hi all

I developed a driver which works fine under W2K . I understand that the
driver that is developed with WDM standard is binary compatible and can be
used in windows 98/Me machines . but when I tried to load the driver I get
the error “The NTKERN.vxd device loader(s) for this device could not load
the device driver.(Code 2) . To fix this , click Update Driver to update the
device driver” . Initially I found that there is no Ntkern.vxd in the system
and copied the file to \windows\system and \windows \system\vmm32
directories . Still I see this problem . Right now I am using Windows Me
machine to load the driver .

Anybody got into this kind of problem ? Any solution for this ?

Thanks in advance
srinivas


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I’m afraid that you make a mistake…The WDM drivers are source-compatible
between Win2k and Win 98 ,yet not binary-compatible.

So you’d better re-compile you driver with Win98 DDK…

Still remember, even the documentation says the WDM drivers are
source-compatible between Win2k and Win 98 , there are some
problems---------some functions work on W2k but not W98, and on W98 some
IRPs(such as IRP_MN_REMOVE_DEVICE) work in a diffrent way from W2k …

Good luck…

----- Original Message -----
From: “Srinivasa Rao Deevi”
To: “NT Developers Interest List”
Sent: Tuesday, August 28, 2001 10:04 AM
Subject: [ntdev] Not able to load WDM driver

> Hi all
>
> I developed a driver which works fine under W2K . I understand that the
> driver that is developed with WDM standard is binary compatible and can be
> used in windows 98/Me machines . but when I tried to load the driver I get
> the error “The NTKERN.vxd device loader(s) for this device could not load
> the device driver.(Code 2) . To fix this , click Update Driver to update
the
> device driver” . Initially I found that there is no Ntkern.vxd in the
system
> and copied the file to \windows\system and \windows \system\vmm32
> directories . Still I see this problem . Right now I am using Windows Me
> machine to load the driver .
>
> Anybody got into this kind of problem ? Any solution for this ?
>
> Thanks in advance
> srinivas
>
>
> —
> You are currently subscribed to ntdev as: KDriver@163.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

check the import list from your driver. Not all functions are
supported from ntkern.vxd.
Use the checked build from vxdldr.vxd, than you can see what
function reference are missing.

elli


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi all

Thanks for the reply . In the sources file I did not mention the DRIVERTYPE
as WDM . I think that’s what is creating problem . I had taken care of not
using the functions that are not available in Windows 98/Me . The function
“IoReuseIrp” which I was using in windows 2K version is not allowing me to
use the line DRIVERTYPE=WDM in sources file. If I define that statement,
then I get the linker error for using IoReuseIrp function . I had some
conditional code which does not use IoReuseIrp if it is other than W2K .
Right now I am using the work around solution for the IoReuseIrp for both
W2k and Windows 98/Me .

Did anybody face this problem before ? I wanted to know anybody has used
IoReuseIrp with DRIVERTYPE defined as WDM in sources file .

Thanks in advance
srinivas

-----Original Message-----
From: Mathias Ellinger [mailto:xxxxx@Ellisoft.de]
Sent: Tuesday, August 28, 2001 1:56 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Not able to load WDM driver

Hi,

check the import list from your driver. Not all functions are
supported from ntkern.vxd.
Use the checked build from vxdldr.vxd, than you can see what
function reference are missing.

elli


You are currently subscribed to ntdev as: xxxxx@transilica.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I’m afraid that you make a mistake…The WDM drivers are
source-compatible

between Win2k and Win 98 ,yet not binary-compatible.

Wrong, for instance, I used the 1394 stack binaries from w2k betas with
Win98 Gold.
They are binary compatible to some extent. It is possible to write a
binary which will run on both OSes.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

If you are very very careful. :slight_smile:

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Tuesday, August 28, 2001 3:52 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Not able to load WDM driver

I’m afraid that you make a mistake…The WDM drivers are
source-compatible
between Win2k and Win 98 ,yet not binary-compatible.

Wrong, for instance, I used the 1394 stack binaries from w2k betas with
Win98 Gold.
They are binary compatible to some extent. It is possible to write a
binary which will run on both OSes.

Max


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com