;/*++
;
;Copyright (c) Microsoft Corporation.  All rights reserved.
;
;Module Name:
;
;    wgencounter.inf
;
;Abstract:
;
;    INF file for installing VmGenCounter driver
;
;--*/

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

[DestinationDirs]
Drivers_Dir = 12

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

[SourceDisksFiles]
vmgencounter.sys  = 1,,

[Manufacturer]
%StdMfg%=Standard,NTamd64

[Standard.NTamd64]
%GenCounter.DeviceDesc%=VmGenCounter,VM_Gen_Counter

[VmGenCounter.NT]
CopyFiles=Drivers_Dir

[VmGenCounter.NT.HW]
AddReg=VmGenCounter.NT.AddReg

[VmGenCounter.NT.AddReg]                            
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
; Everybody reads, admin controls (SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_R_RES_R)
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GR;;;WD)(A;;GR;;;RC)"

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

[VmGenCounter.NT.Services]
AddService = gencounter,%SPSVCINST_ASSOCSERVICE%, gencounter_Service_Inst

[gencounter_Service_Inst]
DisplayName    = %GenCounter.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\vmgencounter.sys

[Strings]
;
; Non-Localizable
;
SPSVCINST_ASSOCSERVICE= 0x00000002
MSFT = "Microsoft"
StdMfg = "Microsoft"
DiskId1 = "Microsoft Hyper-V Generation Counter Installation Disk #1"
;
; Localizable
;
GenCounter.DeviceDesc = "Microsoft Hyper-V Generation Counter"
GenCounter.SVCDESC = "Microsoft Hyper-V Generation Counter"
