WDK-7600 with WDFCoinstaller1.5 not working in xp, works fine in win-7

Hi,

I am finding trouble with WDF Coinstaller DLL 1.5 version for all OS with
WDK 7600 build environments.

I have build the binary for xp-32 bit, It is working fine for Win-7 32 bit
with 1.5 dll, but it is not working for older os for xp & vista.

Instead 1.5, i have replaced with 1.9 in inf, it is working fine for xp &
vista.

I want to use 1.5 to avoid system restart for all OS, but it is not working
in 7600 build environment, I have tried with 6000 environment, It installed
fine in XP, this way i ensured that, my inf, sys everything is fine for xp as
well.

Can i build the driver in wdk-6000 and can i use the same for Win-7 32 as
well?, 6000 doesnt support win-7.

Is there any incompatbility trouble with 7600 & coinstaller for older OS.
But surprisingly, it is working fine for win-7.

Here is my inf file, related to coinstaller and service sections: ;----------------------------------------------------------------------------------
; For x86
[GE-IP.NTX86]
; DisplayName Section DeviceId
; ----------- ------- --------
%Device.Description%= pmc55xx_Inst_x86, pci\ven_114a&dev_5565

[pmc55xx_Inst_X86.NT]
CopyFiles = PMC55XX.Files_12,PMC55XX.Files_11_32
Characteristics=0x04
BusType=5
;------------------------------------------------------
; For AMD64 Arch
[GE-IP.NTAMD64]
; DisplayName Section DeviceId
; ----------- ------- --------
%Device.Description%= pmc55xx_Inst_AMD64, pci\ven_114a&dev_5565

[pmc55xx_Inst_AMD64.NT]
CopyFiles = PMC55XX.Files_12,PMC55XX.Files_10_32,PMC55XX.Files_11_64
Characteristics = 0x04
BusType = 5 ;--------------------common--------------------------------------------------------
[pmc55xx_Inst_$ARCH$.NT.Services]
AddService =PMC55XXSERV,%SPSVCINST_ASSOCSERVICE%,pmc55xx_Service

[pmc55xx_Service]
DisplayName = "Rfm2g PCI5565 Driver"
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_SYSTEM_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\pmc55xx.sys
AddReg = pmc55xx_Parameters_AddReg
LoadOrderGroup = "Base"

[pmc55xx_Parameters_AddReg]
HKR,Ndi,Service,0,"pmc55xx"

;-------------- Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11

[pmc55xx_Inst_$ARCH$.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[pmc55xx_Inst_$ARCH$.NT.Wdf]
KmdfService = PMC55XXSERV, pmc55xx_wdfsect

;--------------------coinstaller common-----------------------------
[CoInstaller_CopyFiles]
WdfCoInstaller01005.dll

[SourceDisksFiles]
WdfCoInstaller01005.dll=1 ; make sure the number matches with SourceDisksNames

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01005.dll,WdfCoInstaller"

[pmc55xx_wdfsect]
KmdfLibraryVersion = 1.5

Setup api log file for XP & Vista

Here is log observed in xp, Vista:

#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [pmc55xx_Inst_X86.NT.Interfaces] from "c:\windows\system32\drvstore\pmc55xx_1a0936efbfe3c187fb3dff3e11d3fdb74dde842f\pmc55xx.inf".
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of
"PCI\VEN_114A&DEV_5565&SUBSYS_00801556&REV_00\7&33B3AFA5&0&00002000E0".
#E360 An unsigned or incorrectly signed file "c:\windows\system32\drvstore\pmc55xx_1a0936efbfe3c187fb3dff3e11d3fdb74dde842f\pmc55xx.inf"
for driver "Rfm2g PCI/PMC 5565 Driver" will be installed (Policy=Ignore).
Error 0xe000022f: The third-party INF does not contain digital signature
information.
#I163 Device not started: Device has problem: 0x27:
CM_PROB_DRIVER_FAILED_LOAD.
#I121 Device install of
"PCI\VEN_114A&DEV_5565&SUBSYS_00801556&REV_00\7&33B3AFA5&0&00002000E0"
finished successfully.

CM_PROB_DRIVER_FAILED_LOAD ==> Err msg appeared here, but same binary works
fine for Win7-32 os.


vista setup api log

\driverstore\filerepository\pmc55xx.inf_45cdb725\pmc55xx.inf'.
dvi: Class GUID of device remains:
{6121c478-7b3f-45b8-a2e3-330f04991213}.
dvi: Set selected driver complete.
dvi: Selected:
dvi: Description - [Rfm2g PCI/PMC 5565 Driver]
dvi: InfFile - [c:\windows\system32\driverstore\filerepository\pmc55xx.inf_45cdb725\pmc55xx.inf]
dvi: Section - [pmc55xx_Inst_X86]
dvi: Signer - [ge fanuc automation americas,
inc.]
dvi: Rank - [0x0fff2001]
dvi: {Select Best Driver - exit(0x00000000)}
dvi: Default installer: Exit
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 18:49:12.074
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL} 18:49:12.074
dvi: No class installer for 'Rfm2g PCI/PMC 5565 Driver'
dvi: CoInstaller 1: Enter 18:49:12.074
dvi: CoInstaller 1: Exit
dvi: Default installer: Enter 18:49:12.074
dvi: Default installer: Exit
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020e)} 18:49:12.074
dvi: {DIF_DESTROYPRIVATEDATA} 18:49:12.074
dvi: CoInstaller 1: Enter 18:49:12.074
dvi: CoInstaller 1: Exit
dvi: Default installer: Enter 18:49:12.074
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 18:49:12.074
dvi: {DIF_DESTROYPRIVATEDATA} 18:49:12.074
dvi: CoInstaller 1: Enter 18:49:12.074
dvi: CoInstaller 1: Exit
dvi: Default installer: Enter 18:49:12.090
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 18:49:12.090
<<< Section end 2010/03/03 18:49:12.090
<<< [Exit status: SUCCESS]

Here DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020e)

Thanks,
Kota

When you build with the win7 7600 wdk, you always bind to kmdf version 1.9. If you want to bind to kmdf ver 1.5, build in the vista wdk . If you need to target xp and kmdf v1.5, build in an xp build window in the vista kit

d

tiny phone keyboard + fat thumbs = you do the muth

-----Original Message-----
From: prafulla.kota@ge.com <prafulla.kota>
Sent: Friday, March 05, 2010 3:40 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WDK-7600 with WDFCoinstaller1.5 not working in xp, works fine in win-7

Hi,

I am finding trouble with WDF Coinstaller DLL 1.5 version for all OS with
WDK 7600 build environments.

I have build the binary for xp-32 bit, It is working fine for Win-7 32 bit
with 1.5 dll, but it is not working for older os for xp & vista.

Instead 1.5, i have replaced with 1.9 in inf, it is working fine for xp &
vista.

I want to use 1.5 to avoid system restart for all OS, but it is not working
in 7600 build environment, I have tried with 6000 environment, It installed
fine in XP, this way i ensured that, my inf, sys everything is fine for xp as
well.

Can i build the driver in wdk-6000 and can i use the same for Win-7 32 as
well?, 6000 doesnt support win-7.

Is there any incompatbility trouble with 7600 & coinstaller for older OS.
But surprisingly, it is working fine for win-7.

Here is my inf file, related to coinstaller and service sections: ;----------------------------------------------------------------------------------
; For x86
[GE-IP.NTX86]
; DisplayName Section DeviceId
; ----------- ------- --------
%Device.Description%= pmc55xx_Inst_x86, pci\ven_114a&dev_5565

[pmc55xx_Inst_X86.NT]
CopyFiles = PMC55XX.Files_12,PMC55XX.Files_11_32
Characteristics=0x04
BusType=5
;------------------------------------------------------
; For AMD64 Arch
[GE-IP.NTAMD64]
; DisplayName Section DeviceId
; ----------- ------- --------
%Device.Description%= pmc55xx_Inst_AMD64, pci\ven_114a&dev_5565

[pmc55xx_Inst_AMD64.NT]
CopyFiles = PMC55XX.Files_12,PMC55XX.Files_10_32,PMC55XX.Files_11_64
Characteristics = 0x04
BusType = 5 ;--------------------common--------------------------------------------------------
[pmc55xx_Inst_$ARCH$.NT.Services]
AddService =PMC55XXSERV,%SPSVCINST_ASSOCSERVICE%,pmc55xx_Service

[pmc55xx_Service]
DisplayName = “Rfm2g PCI5565 Driver”
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_SYSTEM_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\pmc55xx.sys
AddReg = pmc55xx_Parameters_AddReg
LoadOrderGroup = “Base”

[pmc55xx_Parameters_AddReg]
HKR,Ndi,Service,0,“pmc55xx”

;-------------- Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11

[pmc55xx_Inst_$ARCH$.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[pmc55xx_Inst_$ARCH$.NT.Wdf]
KmdfService = PMC55XXSERV, pmc55xx_wdfsect

;--------------------coinstaller common-----------------------------
[CoInstaller_CopyFiles]
WdfCoInstaller01005.dll

[SourceDisksFiles]
WdfCoInstaller01005.dll=1 ; make sure the number matches with SourceDisksNames

[CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller01005.dll,WdfCoInstaller”

[pmc55xx_wdfsect]
KmdfLibraryVersion = 1.5
------------------------------------------------------------------------

Setup api log file for XP & Vista

Here is log observed in xp, Vista:
-------------------------------------
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [pmc55xx_Inst_X86.NT.Interfaces] from “c:\windows\system32\drvstore\pmc55xx_1a0936efbfe3c187fb3dff3e11d3fdb74dde842f\pmc55xx.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of
“PCI\VEN_114A&DEV_5565&SUBSYS_00801556&REV_00\7&33B3AFA5&0&00002000E0”.
#E360 An unsigned or incorrectly signed file “c:\windows\system32\drvstore\pmc55xx_1a0936efbfe3c187fb3dff3e11d3fdb74dde842f\pmc55xx.inf”
for driver “Rfm2g PCI/PMC 5565 Driver” will be installed (Policy=Ignore).
Error 0xe000022f: The third-party INF does not contain digital signature
information.
#I163 Device not started: Device has problem: 0x27:
CM_PROB_DRIVER_FAILED_LOAD.
#I121 Device install of
“PCI\VEN_114A&DEV_5565&SUBSYS_00801556&REV_00\7&33B3AFA5&0&00002000E0”
finished successfully.
-------------------------------------------------------------------------------------
CM_PROB_DRIVER_FAILED_LOAD ==> Err msg appeared here, but same binary works
fine for Win7-32 os.

----------------------------------
vista setup api log
----------------------------------
\driverstore\filerepository\pmc55xx.inf_45cdb725\pmc55xx.inf’.
dvi: Class GUID of device remains:
{6121c478-7b3f-45b8-a2e3-330f04991213}.
dvi: Set selected driver complete.
dvi: Selected:
dvi: Description - [Rfm2g PCI/PMC 5565 Driver]
dvi: InfFile - [c:\windows\system32\driverstore\filerepository\pmc55xx.inf_45cdb725\pmc55xx.inf]
dvi: Section - [pmc55xx_Inst_X86]
dvi: Signer - [ge fanuc automation americas,
inc.]
dvi: Rank - [0x0fff2001]
dvi: {Select Best Driver - exit(0x00000000)}
dvi: Default installer: Exit
dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 18:49:12.074
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL} 18:49:12.074
dvi: No class installer for ‘Rfm2g PCI/PMC 5565 Driver’
dvi: CoInstaller 1: Enter 18:49:12.074
dvi: CoInstaller 1: Exit
dvi: Default installer: Enter 18:49:12.074
dvi: Default installer: Exit
dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020e)} 18:49:12.074
dvi: {DIF_DESTROYPRIVATEDATA} 18:49:12.074
dvi: CoInstaller 1: Enter 18:49:12.074
dvi: CoInstaller 1: Exit
dvi: Default installer: Enter 18:49:12.074
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 18:49:12.074
dvi: {DIF_DESTROYPRIVATEDATA} 18:49:12.074
dvi: CoInstaller 1: Enter 18:49:12.074
dvi: CoInstaller 1: Exit
dvi: Default installer: Enter 18:49:12.090
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 18:49:12.090
<<< Section end 2010/03/03 18:49:12.090
<<< [Exit status: SUCCESS]
--------------------------------------------------------------------------
Here DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020e)

Thanks,
Kota


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</prafulla.kota>

prafulla.kota@ge.com wrote:

I am finding trouble with WDF Coinstaller DLL 1.5 version for all OS with
WDK 7600 build environments.

I have build the binary for xp-32 bit, It is working fine for Win-7 32 bit
with 1.5 dll, but it is not working for older os for xp & vista.

Instead 1.5, i have replaced with 1.9 in inf, it is working fine for xp &
vista.

So, you actually tried building the driver with the 7600 WDK, which
links with the 1.9 KMDF, and installing it using the 1.5 co-installer?
What ever led you to believe that would work?

I want to use 1.5 to avoid system restart for all OS, but it is not working
in 7600 build environment, I have tried with 6000 environment, It installed
fine in XP, this way i ensured that, my inf, sys everything is fine for xp as
well.

And that’s the binary you should ship.

Can i build the driver in wdk-6000 and can i use the same for Win-7 32 as
well?, 6000 doesnt support win-7.

Of course you can. You’re just thinking about it in the wrong way.
Remember, drivers built with the 10-year-old XP DDK still work just fine
in Windows 7.

Is there any incompatbility trouble with 7600 & coinstaller for older OS.

Files built in the 7600 WDK must ship with the 1.9 co-installer. Files
built in the 6000 WDK must ship with the 1.5 co-installer. Files built
in the 6001 WDK must ship with the 1.7 co-installer. Just that easy.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.