; Copyright (c) Microsoft Corporation. All rights reserved.
;
; This INF installs VHF as a function driver on a devnode that represents a Bluetooth loosely-
; coupled pen.

[Version]
Signature = "$WINDOWS NT$"
Class = Bluetooth
ClassGuid = {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}
Provider = %MSFT%
PnpLockdown = 1
DriverVer = 06/21/2006,10.0.22621.1

[DestinationDirs]
DefaultDestDir = 12

[ControlFlags]
; We don't anticipate a need for 3rd-party drivers on this stack. So skip WU search on installation.
BasicDriverOk = *
; Currently the devnode is created raw, so preconfigure the driver to improve the chance that the
; device starts for the first time with this driver installed.
PreConfigureDriver = *

[Manufacturer]
%MSFT% = BthLCPenVhf, NTamd64

[BthLCPenVhf.NTamd64]
%BthLCPenVhf.DeviceDesc% = BthLCPenVhf.Install, BthLC\Pen

[BthLCPenVhf.Install.NT]
Include = hidvhf.inf
Needs = vhfservice.NT

[BthLCPenVhf.Install.NT.HW]
Include = hidvhf.inf
Needs = vhfservice.NT.HW
AddReg = BthLCPenVhf.NT.HW.AddReg

[BthLCPenVhf.NT.HW.AddReg]
; Exclusive access to the device.
HKR, , Exclusive, 0x10001, 1
; Allow access to system, administrators group, user-mode drivers, and Bluetooth service (bthserv).
; "sc showsid bthserv" prints the bthserv service SID.
HKR, , Security, , "D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GA;;;UD)(A;;GA;;;S-1-5-80-2586557155-168560303-1373426920-983201488-1499765686)"

[BthLCPenVhf.Install.NT.Services]
Include = hidvhf.inf
Needs = vhfservice.NT.Services

[Strings]
MSFT = "Microsoft"
BthLCPenVhf.DeviceDesc = "Bluetooth Loosely-Coupled Pen"
