;/*++
;
;Copyright (c) Microsoft Corporation.  All rights reserved.
;
;Module Name:
;
;    wVpci.INF
;
;Abstract:
;    INF file for installing the virtual PCI driver in a VM
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=SYSTEM
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
PnpLockdown=1
DriverVer = 06/21/2006,10.0.20348.2849

[DestinationDirs]
DefaultDestDir = 12

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

[SourceDisksFiles]
vpci.sys  = 1,,

;*****************************************
; Vpci Install Section
;*****************************************

[Manufacturer]
%StdMfg%=Standard,NTamd64

[Standard.NTamd64]
%Vpci.DeviceDesc%=Vpci_Device_Child,vmbus\{44C4F61D-4444-4400-9D52-802E27EDE19F}

[Vpci_Device_Child.NT]
CopyFiles=Drivers_Dir

[Vpci_Device_Child.NT.HW]
AddReg=Vpci_Device.NT.AddReg

[Vpci_Device.NT.AddReg]
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;NS)"  ; Allow generic-all access to Built-in administrators, Local system, and network service

[Drivers_Dir]
vpci.sys,,,0x100 ;COPYFLG_PROTECTED_WINDOWS_DRIVER_FILE

;-------------- Service installation
[Vpci_Device_Child.NT.Services]
AddService = vpci,%SPSVCINST_ASSOCSERVICE%, vpci_Service_Inst_Child, vpci_EventLog_Inst

; -------------- vpci driver install sections
[vpci_Service_Inst_Child]
DisplayName    = %vpci.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 0               ; SERVICE_BOOT_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\vpci.sys
LoadOrderGroup = System Bus Extender

; -------------- vpci eventlog setup sections
[vpci_EventLog_Inst]
AddReg         = vpci_EventLog_AddReg

[vpci_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\vpci.sys"
HKR,,TypesSupported,0x00010001,7

; -------------- vpci driver uninstall sections
[DefaultUninstall.Services]
DelService = vpci,0x00000200

[DefaultUninstall]
DelFiles = Drivers_Dir

[Strings]
;
; Non-Localizable
;
SPSVCINST_ASSOCSERVICE= 0x00000002
MSFT = "Microsoft"
StdMfg = "Microsoft"
DiskId1 = "Microsoft Hyper-V Virtual PCI Bus Installation Disk #1"
;
; Localizable
;
Vpci.DeviceDesc = "Microsoft Hyper-V Virtual PCI Bus"
vpci.SVCDESC = "Microsoft Hyper-V Virtual PCI Bus"
