;
; Copyright (c) Livescribe.  All rights reserved.
;
; CDC enumerator - Smartpen Bus
;

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%Mfg%
CatalogFile=smartpen.cat
DriverVer=04/17/2008, 1.4.0.24

; ================= Device Install section =====================

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%Mfg%=DeviceList,NTx86

[SourceDisksFiles]
SmartpenBus.sys = 1

[SourceDisksNames]
1=%Disk_Description%,,,

[DestinationDirs]
DefaultDestDir = 12

; Windows 2000
[DeviceList]
%SmartpenBus.DevDesc%=DevInstall, USB\VID_1CFB&PID_1000
%SmartpenBus.DevDesc%=DevInstall, USB\VID_1CFB&PID_1010
%SmartpenBusComposite.DevDesc%=DevInstall, USB\VID_1CFB&PID_1011&MI_01

; Windows XP and later
[DeviceList.NTx86]
%SmartpenBus.DevDesc%=DevInstall, USB\VID_1CFB&PID_1000
%SmartpenBus.DevDesc%=DevInstall, USB\VID_1CFB&PID_1010
%SmartpenBusComposite.DevDesc%=DevInstall, USB\VID_1CFB&PID_1011&MI_01

[DevInstall.NT]
CopyFiles=DevInstall_CopyFiles

[DevInstall_CopyFiles]
SmartpenBus.sys,,,0x20    ; Copy if newer

[DevInstall.NT.Services]
AddService = %SmartpenBus.SvcName%, 0x00000002, DevInstall_AddService

[DevInstall_AddService]
DisplayName    = %SmartpenBus.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\SmartpenBus.sys

;-------------- WDF Coinstaller installation

[DestinationDirs]
CoInstaller_CopyFiles = 11

[DevInstall.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01007.dll

[SourceDisksFiles]
WdfCoInstaller01007.dll=1 ; make sure the number matches with SourceDisksNames

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01007.dll,WdfCoInstaller"

[DevInstall.NT.Wdf]
KmdfService = %SmartpenBus.SvcName%, smartpen_wdfsect

[smartpen_wdfsect]
KmdfLibraryVersion = 1.7

;---------------------------------------------------------------;

[Strings]
Mfg = "LiveScribe"
Disk_Description = "Smartpen Installation Disk"
SmartpenBus.SvcDesc = "Smartpen Enumerator"
SmartpenBus.SvcName = "SmartpenBus"
SmartpenBus.DevDesc = "Pulse Smartpen"
SmartpenBusComposite.DevDesc = "Pulse Smartpen Composite"
