;/*++
;
;Copyright (c) Microsoft Corporation.  All rights reserved.
;
;Module Name:
;
;    virtdisk.inf
;
;Abstract:
;
;    Installation INF for loopback-mounted virtual hard disks.
;
;--*/

[Version]
Signature="$Windows NT$"
Class=DiskDrive
ClassGUID={4D36E967-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
PnpLockdown=1
DriverVer = 06/21/2006,10.0.20348.1

[Manufacturer]
%MSFT%=Standard,NTamd64

[Standard.NTamd64]
%device_desc%=virtdisk_install, SCSI\DiskMsft____VirtualPMEM_Disk

[virtdisk_install]
Include = disk.inf
Needs = disk_install.NT
CopyFiles = virtdisk_copyfiles

[virtdisk_copyfiles]
bttflt.sys,,,0x100 ;COPYFLG_PROTECTED_WINDOWS_DRIVER_FILE

[virtdisk_install.HW]
AddReg = virtdisk_install.HW.AddReg

[virtdisk_install.HW.AddReg]
HKR,,"LowerFilters",%REG_MULTI_SZ%,"bttflt"

[virtdisk_install.Services]
AddService = bttflt,,bttflt.Service
Include = disk.inf
Needs = disk_install.NT.Services

[bttflt.Service]
DisplayName = %service_desc%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType   = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\bttflt.sys
LoadOrderGroup = "PnP Filter"
AddReg = bttflt.Service.AddReg

[bttflt.Service.AddReg]
HKR,,BootFlags,%REG_DWORD_NO_CLOBBER%,0x2 ; CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD

[SourceDisksFiles]
bttflt.sys = 1

[SourceDisksNames]
1=windows cd

[DestinationDirs]
virtdisk_copyfiles = 12

[Strings]
;
; Non-Localizable
;
MSFT="Microsoft"

REG_MULTI_SZ=0x00010000
REG_MULTI_SZ_APPEND=0x00010008
REG_DWORD_NO_CLOBBER=0x00010003
DELREG_MULTI_SZ_DELSTRING=0x00018002
SERVICE_KERNEL_DRIVER=1
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1

;
; Localizable
;
device_desc  = "Microsoft Virtual PMEM Disk"
service_desc = "Microsoft Hyper-V VHDPMEM BTT Filter"
