;/*++
;
;Copyright (c) Callback Technologies, Inc. All rights Reserved
;
;Module Name:
;
;    vpnpbus.inf
;
;Abstract:
;
;    INF file for installing virtual PnP bus driver. 
;
;--*/

[Strings] 
DriverDate = "05/30/2012"
DriverVer = "1.0.0.1"
Provider = "Callback Technologies, Inc."
SourceDisk.Desc = "Callback Technologies virtual PnP bus driver"
VBusDevice.Desc = "Callback Technologies PnP virtual bus"
VBusChildDevice.Desc = "Callback Technologies PnP virtual subbus"
VBusService.Desc = "Callback Technologies PnP Virtual Bus driver"
VBusHardwareId = "root\callbacktech_virtual_pnp_bus"
VBusClass.Desc = "Callback Technologies PnP virtual devices"
VBusService.Name = "vpnpbus"
VBusDriver.Name = "vpnpbus.sys"

SERVICE_BOOT_START = 0x0 
SERVICE_SYSTEM_START = 0x1 
SERVICE_AUTO_START = 0x2 
SERVICE_DEMAND_START = 0x3 
SERVICE_DISABLED = 0x4 

SERVICE_KERNEL_DRIVER = 0x1 
SERVICE_ERROR_IGNORE = 0x0 
SERVICE_ERROR_NORMAL = 0x1 
SERVICE_ERROR_SEVERE = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

SPSVCINST_ASSOCSERVICE = 0x00000002

REG_EXPAND_SZ = 0x00020000 
REG_DWORD = 0x00010001 


[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
CatalogFile=vpnpbus.cat
Provider=%Provider% 
DriverVer=%DriverDate%,%DriverVer%

;*****************************************
; Virtual Bus Devices Setup Class Install Section
;*****************************************

;[ClassInstall32]
;AddReg=ClassInstall32AddReg
;CopyFiles=ClassInstall32CopyFiles

;[ClassInstall32AddReg]
;HKR,,,,%VBusClass.Desc%
;HKR,,Installer32,,"samclass.dll,SampleClassInstaller"
;HKR,,EnumPropPages32,,samclass.dll
;HKR,,Icon,,-27
;HKR,,NoInstallClass,,1
;HKR,,SilentInstall,,1
;HKR,,NoDisplayClass,,1

;[ClassInstall32CopyFiles]
;samclass.dll,,,2

;*****************************************
; Source and destination descriptions
;*****************************************

[DestinationDirs] 
VBus_Device.Files.x86_12 = 12
VBus_Device.Files.amd64_12 = 12
VBus_Device.Files.ia64_12 = 12  

[SourceDisksNames]
1 = %SourceDisk.Desc%,,,

;[SourceDisksNames.x86]
;1 = %SourceDisk.Desc%,,,i386

;[SourceDisksNames.amd64]
;1 = %SourceDisk.Desc%,,,x64

;[SourceDisksNames.ia64]
;1 = %SourceDisk.Desc%,,,ia64

[SourceDisksFiles]
vpnpbus.sys = 1
;%VBusDriver.Name% = 1

;*****************************************
; Virtual Bus Devices Install Section
;*****************************************

[Manufacturer]
%Provider%=CallbackTech,NTx86,NTamd64,NTia64

[CallbackTech.NTx86]
%VBusDevice.Desc%=VBus_Device,%VBusHardwareId%

[CallbackTech.NTamd64]
%VBusDevice.Desc%=VBus_Device,%VBusHardwareId%

[CallbackTech.NTia64]
%VBusDevice.Desc%=VBus_Device,%VBusHardwareId%

[VBus_Device.NTx86]
CopyFiles = VBus_Device.Files.x86_12

[VBus_Device.NTamd64]
CopyFiles = VBus_Device.Files.amd64_12

[VBus_Device.NTia64]
CopyFiles = VBus_Device.Files.ia64_12

[VBus_Device.Files.x86_12]
%VBusDriver.Name%

[VBus_Device.Files.amd64_12]
%VBusDriver.Name%

[VBus_Device.Files.ia64_12]
%VBusDriver.Name%

[VBus_Device.NTx86.Services] 
AddService = %VBusService.Name%,%SPSVCINST_ASSOCSERVICE%,VBus_Device.Service

[VBus_Device.NTamd64.Services] 
AddService = %VBusService.Name%,%SPSVCINST_ASSOCSERVICE%,VBus_Device.Service

[VBus_Device.NTia64.Services] 
AddService = %VBusService.Name%,%SPSVCINST_ASSOCSERVICE%,VBus_Device.Service

[VBus_Device.Service] 
DisplayName = %VBusService.Desc%
ServiceType = %SERVICE_KERNEL_DRIVER% 
StartType = %SERVICE_DEMAND_START% 
ErrorControl = %SERVICE_ERROR_NORMAL% 
ServiceBinary = %12%\%VBusDriver.Name%
