Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

KMDF driver fails to load on XP

187 views
Skip to first unread message

Abhijit

unread,
May 16, 2011, 4:35:01 AM5/16/11
to
Hi,

I have built a KMDF driver with Win7 x86 Free Build environment of
WINDDK 7600.16385.0
This driver installs properly on Vista and Win 7, but when I try to
install it on WinXP SP3 I get an error code 39.
I have the WinDbg hooked and it shows no prints in my driver entry,
which means my driver is not yet loaded.
I have also run the chkinf on my INF and it gave no errors.

The XP system is a fresh one and its setupact.log gives this info:
---------------------->>
WdfCoInstaller: [05/16/2011 13:14.28.453] DIF_INSTALLDEVICE: Pre-
Processing
WdfCoInstaller: [05/16/2011 13:14.28.484] ReadComponents: WdfSection
for Driver Service MYDRV using KMDF lib version Major 0x1, minor 0x9
WdfCoInstaller: [05/16/2011 13:14.28.515] DIF_INSTALLDEVICE:
Coinstaller version: 1.9.7600
WdfCoInstaller: [05/16/2011 13:14.28.531] GetControlKey:
RegOpenKeyEx(HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Wdf
\Kmdf\KmdfLibrary\Versions) failed: error(2) The system cannot find
the file specified.
WdfCoInstaller: [05/16/2011 13:14.28.546] KMDF control key was not
found
WdfCoInstaller: [05/16/2011 13:14.28.578] Using default name for KMDF
service: Wdf01000
WdfCoInstaller: [05/16/2011 13:14.28.609] GetInMemoryVersionUlong: No
information about in-memory KMDF version
WdfCoInstaller: [05/16/2011 13:14.28.656] DIF_INSTALLDEVICE: KMDF in-
memory version: 0.0.0
WdfCoInstaller: [05/16/2011 13:14.28.687] GetLatestInstalledVersion:
KMDF was not previously installed in the system
WdfCoInstaller: [05/16/2011 13:14.28.703] DIF_INSTALLDEVICE: No need
for reboot, because KMDF was not found in the system
WdfCoInstaller: [05/16/2011 13:14.28.906] VerifyMSRoot: exit: error(0)
The operation completed successfully.
WdfCoInstaller: [05/16/2011 13:14.29.531] Invoking "C:\WINDOWS\Temp
\WdfTemp\Microsoft Kernel-Mode Driver Framework Install-v1.9-Win2k-
WinXP-Win2k3.exe /quiet /norestart /o /ER".
WdfCoInstaller: [05/16/2011 13:14.42.203] The package was installed
successfully: error(0) The operation completed successfully.
WdfCoInstaller: [05/16/2011 13:14.42.250] InstallComponents: KMDF
installed successfully
WdfCoInstaller: [05/16/2011 13:14.44.921] DIF_INSTALLDEVICE: Post-
Processing
<<------------------------

The coinstaller section in my INF file is as below:
------------------------>>
[MyDrv.NT.CoInstallers]
AddReg=MyDrv_CoInstaller_AddReg
CopyFiles=MyDrv_CoInstaller_CopyFiles

[MyDrv_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,
"WdfCoInstaller01009.dll,WdfCoInstaller"

[MyDrv_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[MyDrv.NT.Wdf]
KmdfService = MOSUMAC, MOSUMAC_wdfsect

[MOSUMAC_wdfsect]
KmdfLibraryVersion = 1.9
<<------------------------

I am using the WdfCoInstaller01009.dll file with timestamp 7/14/2009
12.27 PM present in the WINDDK.
Any suggestions are welcome.
Thanks,

Regards,
Abhijit

Don Burn

unread,
May 16, 2011, 6:46:20 AM5/16/11
to
Build the driver for XP, there is no guarantee a Win7 driver will work
on XP in fact most of the time it will not. If that doesn't work turn
on SetupAPI Logging in the registry, reboot the system and try
installing.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

"Abhijit" <abhijit....@gmail.com> wrote in message
news:dcff2013-e915-4f04...@d26g2000prn.googlegroups.com:

3986...@qq.com

unread,
Jun 26, 2016, 10:56:16 AM6/26/16
to
在 2011年5月16日星期一 UTC+8下午4:35:01,Abhijit写道:
Hi Abhijit,
I got the same problem, did you solve it now ? if so, how did you make it ?
thank you !
0 new messages