A very nice article on Vminiports:
http://www.osronline.com/article.cfm?id=538
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Cariddi
Sent: Friday, October 02, 2009 9:31 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Virtual StorPort Driver
You have to create a INF file that indicates you are root enumerated.
Then your drive will be loaded.
Mark Cariddi
OSR, Open Systems Resources, Inc…
[Version]
Signature=“$WINDOWS NT$”
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%OSR%
DriverVer=01/30/2007,6.0.6000.16386
CatalogFile = OSRVMINIPT.cat
[DestinationDirs]
DefaultDestDir = 12
[Manufacturer]
%OSR%=OSRVM, NTx86, NTamd64
[OSRVM.NTx86]
%OSRVMDeviceDesc%=OSRVM_Device, %rootstr%
[OSRVM.NTamd64]
%OSRVMDeviceDesc%=OSRVM_Device, %rootstr%
[OSRVM_Device]
CopyFiles=@OsrVStor.sys
[OSRVM_Device.Services]
AddService = OSRVStor, %SPSVCINST_ASSOCSERVICE%, OSRVM_Service_Inst
[SourceDisksNames.x86]
1 = %DiskId1%,\i386
[SourceDisksNames.amd64]
1 = %DiskId1%,\amd64
[SourceDisksFiles]
OsrVStor.sys = 1
[OSRVM_Service_Inst]
DisplayName = %OSRVMDeviceDesc%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_BOOT_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\OsrVStor.sys
LoadOrderGroup = SCSI Miniport
AddReg = pnpsafe_isa_addreg
[pnpsafe_isa_addreg]
HKR, “Parameters”, “BreakOnEntry”, %REG_DWORD%,
0x00000000
[Strings]
OSR = “OSR, Open Systems Resoruces, Inc.”
SCSIClassName = “SCSI and RAID controllers”
OSRVMDeviceDesc = “OSR StorPort Virtual Adapter”
DiskId1 = “OSR Virtual Miniport Device Installation Disk #1”
rootstr = “root\OsrVm”
;*******************************************
;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
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Friday, October 02, 2009 12:15 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Virtual StorPort Driver
Hi Igor,
I don’t have any hardware, so how does the PCI bus driver know to create
an object for me? Is it just by virtue of declaring in the .inf file
that my ‘device’ is PCI emumerated that this will happen?
Right now when I load my driver it gets unloaded immediately because
there is no device created. I’ve tried creating a dummy control device,
which keeps the driver loaded, but that’s it.
Thanks
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
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