Hi,
I followed you instructions and set up WinDbg. I saw, that
WdfDeviceCreate had failed.
Extract from WinDbg:
COM Port Filter
Built Dec 1 2008 16:42:40
WdfDeviceCreate failed with status code 0xc0000004
Unfortunately I can’t say why this had happened, because of my
inexperience in writing drivers. Is this possible with a wrong .inf or
might the failure be directly in the driver code? To exclude all doubts
I attach my inf.
[Version]
Signature = “$WINDOWS NT$”
Class = PORTS
ClassGuid = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider = %MSFT%
DriverVer=11/26/2008,6.0.6001.18000
[DestinationDirs]
DefaultDestDir = 12
;*****************************************
; BthCom Device Filter Install Section
;*****************************************
[Manufacturer]
%StdMfg%=Standard,NTx86
; For Win2K
[Standard]
; DisplayName Section DeviceId
; ----------- ------- --------
%BthCom.DeviceDesc%=BthCom, BTHENUM{00001101-0000-1000-8000-00805f9b34fb}
; For XP and later
[Standard.NTx86]
%BthCom.DeviceDesc%=BthCom, BTHENUM{00001101-0000-1000-8000-00805f9b34fb}
[BthCom.NT]
CopyFiles=BthCom.NT.Copy
[BthCom.NT.Copy]
bthcom.sys
[BthCom.NT.HW]
AddReg = BthCom.NT.HW.AddReg
[BthCom.NT.HW.AddReg]
HKR,“UpperFilters”,0x00010000,“BthCom”
;*****************************************
; BthCom Device Filter Service Section
;*****************************************
[BthCom.NT.Services]
;Do not specify SPSVCINST_ASSOCSERVICE on filter drivers.
AddService = BthCom, filter_Service_Inst
[filter_Service_Inst]
DisplayName = %filter.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\bthcom.sys
;*************************
; Source file information
;*************************
[SourceDisksNames]
1 = %DiskId1%,“”
[SourceDisksFiles]
bthcom.sys = 1,
;
;— BthCom Coinstaller installation ------
;
[DestinationDirs]
BthCom_CoInstaller_CopyFiles = 11
[BthCom.NT.CoInstallers]
AddReg = BthCom_CoInstaller_AddReg
CopyFiles = BthCom_CoInstaller_CopyFiles
[BthCom_CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller01007.dll,WdfCoInstaller”
[BthCom_CoInstaller_CopyFiles]
WdfCoInstaller01007.dll
[SourceDisksFiles]
WdfCoInstaller01007.dll=1 ; make sure the number matches with
SourceDisksNames
[BthCom.NT.Wdf]
KmdfService = BthCom, BthCom_wdfsect
[BthCom_wdfsect]
KmdfLibraryVersion = 1.7
[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
MSFT = “***”
StdMfg = “(Standard system devices)”
ClassName = “PORTS”
DiskId1 = “COM Filter Installation Disk #1”
BthCom.DeviceDesc = “***”
filter.SvcDesc = “BTHCOM”