;
; %%COPYRIGHT%%
;
; Planmeca Oy ProSensor_drv driver
;

[Version]
Signature="$WINDOWS NT$"
Class=Net
ClassGUID={4d36e972-e325-11ce-bfc1-08002be10318}
Provider= %Mfg%
DriverVer=03/22/2009,2.0.0.70

[Manufacturer]
%Mfg% = DeviceList,NTx86,NTamd64

; For Win2K
[DeviceList]
%USBCDCECM\VID_09D9&PID_0040&MI_00.DeviceDesc% = DevInstall, USBCDCECM\VID_09D9&PID_0040&MI_00

; For WinXP and later
[DeviceList.NTx86]
%USBCDCECM\VID_09D9&PID_0040&MI_00.DeviceDesc% = DevInstall, USBCDCECM\VID_09D9&PID_0040&MI_00

; For XP and later x64
[DeviceList.NTamd64]
%USBCDCECM\VID_09D9&PID_0040&MI_00.DeviceDesc% = DevInstall, USBCDCECM\VID_09D9&PID_0040&MI_00

;-------------------------------------------------------------------------------
; Virtual Ethernet Adapter
;
[DevInstall]
*IfType         = 160 ; IF_TYPE_USB
*MediaType      = NdisMedium802_3;
*PhysicalMediaType = NdisPhysicalMediumUnspecified; 
Characteristics = 0x84 ; NCF_HAS_UI | NCF_PHYSICAL
BusType         = 15 ; if you specify NCF_PHYSICAL, you must specify bustype
AddReg          = DevInstall.Reg, ParamsPromiscuous
CopyFiles       = DevInstall.CopyFiles

[DevInstall.Services]
AddService      = %ServiceName%, 2, DevInstall.Service, DevInstall.EventLog

;-----------------------------------------------------------------------------
;
[DevInstall.Reg]
HKR,    ,                         BusNumber,           0, "0"
HKR, Ndi,                         Service,             0, "ProSensor_drv"
HKR, Ndi\Interfaces,              UpperRange,          0, "ndis5"
HKR, Ndi\Interfaces,              LowerRange,          0, "ethernet"

[ParamsPromiscuous]
;
;    Should the physical NIC be set to Promiscuous mode
;
HKR, Ndi\Params\Promiscuous,     ParamDesc, , %Promiscuous%
HKR, Ndi\Params\Promiscuous,     Default,  ,"0"
HKR, Ndi\Params\Promiscuous,     type, ,      enum
HKR, Ndi\Params\Promiscuous\enum,"1",  ,     %Promiscuous_Enable%
HKR, Ndi\Params\Promiscuous\enum,"0",  ,     %Promiscuous_Disable%

;-----------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
DevInstall.CopyFiles = 12

[DevInstall.CopyFiles]
%ServiceName%.sys,,,2

;-----------------------------------------------------------------------------
; Driver and Service Section
;

[DevInstall.Service]
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\%ServiceName%.sys
LoadOrderGroup  = NDIS
AddReg          = DevInstall.AddService.AddReg

[DevInstall.AddService.AddReg]
HKR, , TextModeFlags,    0x00010001, 0x0001
HKR, Parameters, DebugLevel, 0x00010001, 2

[DevInstall.EventLog]
AddReg = DevInstall.AddEventLog.Reg

[DevInstall.AddEventLog.Reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7

[SourceDisksNames]
1 = %Disk_Description%,,,""

[SourceDisksFiles]
%ServiceName%.sys  = 1,,

;
;--- WDF Coinstaller installation ------
;
[DestinationDirs]
DevInstall_CoInstaller_CopyFiles = 11

[DevInstall.CoInstallers]
AddReg=DevInstall_CoInstaller_AddReg
CopyFiles=DevInstall_CoInstaller_CopyFiles

[DevInstall_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01007.dll,WdfCoInstaller"

[DevInstall_CoInstaller_CopyFiles]
wdfcoinstaller01007.dll

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

[DevInstall.Wdf]
KmdfService = %ServiceName%, DevInstall_wdfsect

[DevInstall_wdfsect]
KmdfLibraryVersion = 1.7

;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
USBCDCECM\VID_09D9&PID_0040&MI_00.DeviceDesc = "ProSensor"
Mfg = "Planmeca Oy"
Disk_Description = "ProSensor installation"
ServiceName = "ProSensor_drv"
Promiscuous = "Set the physical NIC to promiscuous mode"
Promiscuous_Disable = "Disable"
Promiscuous_Enable  = "Enable"
