;/*++
;
;Copyright (c) Microsoft Corporation.  All rights reserved.
;
;Module Name:
;
;    WSDPrintDevice.INF
;
;Abstract:
;    INF file for installing WSDPrintDevice device drivers. This is an
;    extremely simple form of INF. To test this INF, make sure
;    the WSDPrintDevice class is not previously installed on the system.
;    If it is installed, you must remove the existing WSDPrintDevice class key
;    (HKLM\System\CurrentControlSet\Control\Class\{C30ECEA0-11EF-4ef9-B02E-6AF81E6E65C0})
;    from the registry. Otherwise the setup ignores the entire
;    [ClassInstall32] section if it finds the WSDPrintDevice class guid
;    in the registy.
;
;--*/


[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
wsdprint.sys            = 3426

[Version]
Signature="$WINDOWS NT$"
Class=WSDPrintDevice
ClassGUID={C30ECEA0-11EF-4ef9-B02E-6AF81E6E65C0}
Provider=%MSFT%
DriverVer=06/21/2006,6.1.7600.16385

[ControlFlags]
BasicDriverOk = *
ExcludeFromSelect = *

[DestinationDirs]
WSDPrint_Driver.NT.Copy = 12

;
;*****************************************
; WSDPrintDevice Device Install Section
;*****************************************

[Manufacturer]
%MSFT%=Microsoft, NTx86

[Microsoft.NTx86]
; DisplayName                           Section           DeviceId
; -----------                           -------           --------
%WSDPrintDevice.DeviceDesc%         =   WSDPrint_Device,  UMB\http://schemas.microsoft.com/windows/2006/08/wdp/print/PrinterServiceType

; ================= Class section =====================
;
[ClassInstall32]
Addreg=WSDPrintDeviceClassReg

[WSDPrintDeviceClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-4
HKR,,DeviceCharacteristics,0x10001,0x100     ;Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)" ;Allow generic all access to system and built-in Admin.
                                             ;This one overrides the security set by the driver
[WSDPrint_Device.NT]
CopyFiles=WSDPrint_Driver.NT.Copy

[WSDPrint_Device.NT.HW]
AddReg=WSDPrint_Device.NT.AddReg

[WSDPrint_Device.NT.AddReg]
HKR,,InterfaceGUIDs,0x10000, "{F8580555-8CDF-4396-BAEA-A937CFF94D5A}"
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"      ; Allow generic-all access to Built-in administrators and Local system

[WSDPrint_Driver.NT.Copy]
WSDPrint.sys

;-------------- Service installation

[WSDPrint_Device.NT.Services]
AddService = WSDPrintDevice, %SPSVCINST_ASSOCSERVICE%, WSDPrint_Service_Inst

[WSDPrint_Service_Inst]
DisplayName    = %WSDPrintDevice.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\WSDPrint.sys
LoadOrderGroup = Extended Base


[Strings]
;Non-Localizable strings
SPSVCINST_ASSOCSERVICE= 0x00000002
MSFT = "Microsoft"
;Localizable strings
ClassName = "WSD Print Provider"
WSDPrintDevice.DeviceDesc = "WSD Print Device"
WSDPrintDevice.SVCDESC = "WSD Print Support via UMB"
