;/*++
;
;Copyright (c) Microsoft Corporation.  All rights reserved.
;
;Module Name:
;
;    wvid.INF
;
;Abstract:
;    INF file for installing the Microsoft Hyper-V Virtualization
;    Infrastructure Driver (Vid.sys)
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
PnpLockdown=1
DriverVer = 06/21/2006,10.0.22621.3880
;
; Comment CatalogFile for CBB, the ';' will be removed when makefile.inc
; creates the INF file locally.
;
;CatalogFile=vmvid.cat

[DestinationDirs]
DefaultDestDir = 12

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

[SourceDisksFiles]
Vid.sys  = 1

;*****************************************
; Vid Root Device Install Section
;*****************************************

[DeviceInstall32]
AddDevice = ROOT\VID\0000,,Vid_RootDevice_Inst

[Vid_RootDevice_Inst]
HardwareIds = ROOT\VID

;*****************************************
; Vid Install Section
;*****************************************

[Manufacturer]
%StdMfg%=Standard,NTamd64...0x0000001,NTamd64...0x0000002,NTamd64...0x0000003

; Client editions
[Standard.NTamd64...0x0000001]
%Vid.DeviceDesc%=Vid_Device_Client, ROOT\VID

; Server editions - To service downlevel RDOS offline, we will keep the server section name unchanged instead of using Vid_Device_Server
[Standard.NTamd64...0x0000002]
%Vid.DeviceDesc%=Vid_Device, ROOT\VID
[Standard.NTamd64...0x0000003]
%Vid.DeviceDesc%=Vid_Device, ROOT\VID

[Vid_Device_Client.NT]
CopyFiles=Drivers_Dir

[Vid_Device.NT]
CopyFiles=Drivers_Dir

[Vid_Device_Client.NT.HW]
AddReg=Vid_Device.NT.AddReg

[Vid_Device.NT.HW]
AddReg=Vid_Device.NT.AddReg

[Vid_Device.NT.AddReg]
;
; Use same security checks on relative opens
;
HKR,,DeviceCharacteristics,0x10001,0x0100

;
; Allow generic-all access to Built-in administrators, Local system, VM Group, and VmWorkerProcess capability.
;
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;S-1-5-83-0)(A;NP;GA;;;S-1-15-3-1024-2268835264-3721307629-241982045-173645152-1490879176-104643441-2915960892-1612460704)"

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

;-------------- Service installation
[Vid_Device_Client.NT.Services]
AddService = Vid,%SPSVCINST_ASSOCSERVICE%, Vid_Service_Inst_Client

[Vid_Device.NT.Services]
AddService = Vid,%SPSVCINST_ASSOCSERVICE%, Vid_Service_Inst_Server

[Vid_Service_Inst_Client]
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 1               ; SERVICE_SYSTEM_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Vid.sys
LoadOrderGroup = Extended Base
AddReg=Vid_Service_Inst_Client.AddReg

[Vid_Service_Inst_Client.AddReg]
HKR,Parameters,ExoDeviceEnabledClient,0x00010001,1

[Vid_Service_Inst_Server]
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 1               ; SERVICE_SYSTEM_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\Vid.sys
LoadOrderGroup = Extended Base

[Strings]
;
; Non-Localizable
;
SPSVCINST_ASSOCSERVICE= 0x00000002
MSFT = "Microsoft"
StdMfg = "Microsoft"
DiskId1 = "Microsoft Hyper-V Virtualization Infrastructure Driver Installation Disk #1"
;
; Localizable
;
Vid.DeviceDesc = "Microsoft Hyper-V Virtualization Infrastructure Driver"
