KMDF driver does not load on XP SP2 system

Hi,

We have developed a kernel mode device driver on KMDF.

The driver installs well on Microsoft Vista and device also functions
properly.

However, when we try installing the driver on XP SP2 operating system
(with modified INF), the following problem occurs:

The driver installs but on system restart the driver is not loaded. In
Control Panel device properties we find either of the following error
messages:

  1. “Code 39: Driver for this device could not be loaded”
  2. “Code 37: Driver for this device could not be initialized”

Your valuable suggestion on this would be gratefully acknowledged.

Thanks in Anticipation

Arya

It sounds like you did not properly include the coinstaller in the INF. The coinstaller will install the proper revision level of the framework if it is not present on the target machine.

Since Vista uses KMDF 1.5 for inbox drivers present on every system, the lack of a proper coinstaller won’t prevent your install from succeeding there.

But it won’t work anywhere else, unless the same (or higher) revision of KMDF was opportunely placed there by some other device before you started.

You can find additional source material on this in the WDK and on Doron’s blog.

And if you are using the KMDF coinstaller and still encountering this
problem, you could be using a Vista only API that is not supported
downlevel.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
Sent: Friday, February 02, 2007 5:30 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] KMDF driver does not load on XP SP2 system

It sounds like you did not properly include the coinstaller in the INF.
The coinstaller will install the proper revision level of the framework
if it is not present on the target machine.

Since Vista uses KMDF 1.5 for inbox drivers present on every system,
the lack of a proper coinstaller won’t prevent your install from
succeeding there.

But it won’t work anywhere else, unless the same (or higher) revision of
KMDF was opportunely placed there by some other device before you
started.

You can find additional source material on this in the WDK and on
Doron’s blog.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer