Driver does not load on Windows XP

Hi,

I am facing a problem in loading the drivers on Windows XP which were built using Windows 7 RC Checked build Environment. However, the same binaries loaded successfully in both Windows Vista and Windows 7. The error message says -

" Windows could not load the driver specified. The driver is either missing or corrupted(Code 39)"

Is it that Microsoft has removed the support for Windows XP or is it a bug in Windows RC1 DDK package?

most likely due to an import listed in the driver’s image that XP does not export. you can debug 3 ways

  1. if you have depends.exe, run it on the target OS
  2. build your driver in the XP build window, not the win7 wdk build window
  3. https://blogs.msdn.com/doronh/archive/2006/03/13/550844.aspx

#2 is the official way to build your driver for XP

d


From: xxxxx@lists.osr.com [xxxxx@lists.osr.com] on behalf of xxxxx@gmail.com [xxxxx@gmail.com]
Sent: Monday, June 08, 2009 12:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Driver does not load on Windows XP

Hi,

I am facing a problem in loading the drivers on Windows XP which were built using Windows 7 RC Checked build Environment. However, the same binaries loaded successfully in both Windows Vista and Windows 7. The error message says -

" Windows could not load the driver specified. The driver is either missing or corrupted(Code 39)"

Is it that Microsoft has removed the support for Windows XP or is it a bug in Windows RC1 DDK package?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

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

> Hi,

I am facing a problem in loading the drivers on Windows XP which were
built
using Windows 7 RC Checked build Environment. However, the same
binaries
loaded successfully in both Windows Vista and Windows 7. The error
message
says -

" Windows could not load the driver specified. The driver is either
missing
or corrupted(Code 39)"

Is it that Microsoft has removed the support for Windows XP or is it
a bug in
Windows RC1 DDK package?

Do the drivers work when compiled with 6001.18002?

Are you definitely using XP SP2 or newer? KeFlushQueuedDpcs() is the
only function that comes to mind that was introduced after SP1 but there
may be others.

James

xxxxx@gmail.com wrote:

Hi,

I am facing a problem in loading the drivers on Windows XP which were built using Windows 7 RC Checked build Environment. However, the same binaries loaded successfully in both Windows Vista and Windows 7. The error message says -

" Windows could not load the driver specified. The driver is either missing or corrupted(Code 39)"

Is it that Microsoft has removed the support for Windows XP or is it a bug in Windows RC1 DDK package?

With WDK 7100, if you don’t specify the target OS, it will
select the latest (which is Win7). Drivers built for win7 target,
may not run on WinXP.
Select the correct build environment.

In your SOURCES you can check which target OS is defined,
and fail if you don’t support it. For example:
!if “$(DDK_TARGET_OS)” != “WinXP”
!error …
!endif

– pa