Hi
I developed store port driver based on this sample
https://msdn.microsoft.com/en-us/library/windows/hardware/ff567541(v=vs.85).aspx
the driver run and work on windows 8/2012 OS.
When I try to install the driver on Windows 2008R2 OS it fails , I attached the message from event viewer and my INF, Any idea why the driver not installed
and I get this error from event viewer
"Fault bucket , type 0
Event Name: PnPDriverImportError
Response: Not available
Cab Id: 0
Problem signature:
P1: x64
P2: 00000002
P3: vmstor.inf
P4: 09645298c00f38315e8e6678cf532880aa937643
Below attach the inf file
; VMSTOR.INF
;
; Copyright (c) 1998-2011, Microsoft Corporation.
[Version]
Signature=“$WINDOWS NT$”
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
DriverVer=08/04/2015,14.0.7.703
CatalogFile = vmstor.cat
[DestinationDirs]
DefaultDestDir = 12
[Manufacturer]
%MSFT%=MSFT, NTamd64
[MSFT.NTamd64]
%MPDeviceDesc%=VMSTOR_Device, %rootstr%
[VMSTOR_Device]
CopyFiles=@vmstor.sys
[VMSTOR_Device.HW]
AddReg = VMSTOR_Device_AddReg
[VMSTOR_Device_AddReg]
HKR, “ScsiPort”, “NeedsSystemShutdownNotification”, 0x00010001, 1
[VMSTOR_Device.Services]
AddService = vmstor, %SPSVCINST_ASSOCSERVICE%, VMSTOR_Service_Inst
[SourceDisksNames]
1 = %DiskId1%,
[SourceDisksFiles]
vmstor.sys = 1,
;
;— VMSTOR_Device Coinstaller installation ------
;
[VMSTOR_Device.CoInstallers]
AddReg=VMSTOR_Device_CoInstaller_AddReg
CopyFiles=VMSTOR_Device_CoInstaller_CopyFiles
[SourceDisksFiles]
WdfCoInstaller01011.dll=1, ; make sure the number matches with SourceDisksNames
[VMSTOR_Device_CoInstaller_AddReg]
HKR,CoInstallers32,0x00010000, “WdfCoInstaller01011.dll”
[VMSTOR_Device_CoInstaller_CopyFiles]
WdfCoInstaller01011.dll
[VMSTOR_Device.Wdf]
KmdfService = vmstor, VMSTOR_Device_wdfsect
[VMSTOR_Device_wdfsect]
KmdfLibraryVersion = $(KMDF_VERSION_MAJOR).$(KMDF_VERSION_MINOR)
[VMSTOR_Service_Inst]
DisplayName = %MPDeviceDesc%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_BOOT_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\vmstor.sys
LoadOrderGroup = SCSI Miniport
AddReg = pnpsafe_isa_addreg
[pnpsafe_isa_addreg]
HKR, “Parameters\PnpInterface”, “1”, %REG_DWORD%, 0x00000001
;;;HKR, “Parameters”, “BreakOnEntry”, %REG_DWORD%, 0x00000000
;;;HKR, “Parameters”, “DebugLevel”, %REG_DWORD%, 0x000000ff
;;; The next 2 values will allow a 16 MB virtual harddisk as reported in Disk Manager (diskmgmt.msc).
HKR, “Parameters”, “VirtualDiskSize”, %REG_DWORD%, 0x01000000
HKR, “Parameters”, “PhysicalDiskSize”, %REG_DWORD%, 0x01000000
HKR, “Parameters”, “NbrLUNsperHBA”, %REG_DWORD%, 0x00000002
;;;HKR, “Parameters”, “CombineVirtDisks”, %REG_DWORD%, 0x00000001
[Strings]
MSFT = “NONAME”
SCSIClassName = “SCSI and RAID controllers”
MPDeviceDesc = “Emulated Storage”
DiskId1 = “Virtual Miniport Device Installation Disk #1”
rootstr = “root\vmstor”
;*******************************************
;Handy macro substitutions (non-localizable)
SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER = 1
SERVICE_BOOT_START = 0
SERVICE_ERROR_NORMAL = 1
REG_DWORD = 0x00010001
REG_BINARY = 0x00000001
REG_SZ = 0x00000000