;
; Copyright (c) Livescribe.  All rights reserved.
;
; CDCOBEX Virtual Serial Port - Smartpen Communications
;

[Version]
Signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%Mfg%
CatalogFile=smartpen.cat
DriverVer=04/17/2008, 1.4.0.24

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

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%Mfg%=DeviceList,NTx86

[SourceDisksFiles]
SmartpenCom.sys = 1

[SourceDisksNames]
1=%Disk_Description%,,,

[DestinationDirs]
DefaultDestDir = 12

; Windows 2000
[DeviceList]
%SmartpenCom.DevDesc%=DevInstall, USBCDCOBEX\VID_1CFB&PID_1010
%SmartpenCom.DevDesc%=DevInstall, USBCDCOBEX\VID_1CFB&PID_1011&MI_01

; Windows XP and later
[DeviceList.NTx86]
%SmartpenCom.DevDesc%=DevInstall, USBCDCOBEX\VID_1CFB&PID_1010
%SmartpenCom.DevDesc%=DevInstall, USBCDCOBEX\VID_1CFB&PID_1011&MI_01
	
[DevInstall.NT]
CopyFiles = DevInstall_CopyFiles
AddReg = DevInstall_AddReg

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

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

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

[DevInstall.NT.HW]
AddReg = DevInstall_NT_HW_AddReg

[DevInstall_NT_HW_AddReg]
HKR,,"DataInPacketsPerXfer",0x00010001,0x400
HKR,,"DataInBuffers",0x00010001,0x8
HKR,,"DataOutZeroPacketEnable",0x00010001,0x01

;-------------- Add standard properties page (displayed in Device Manager)
[DevInstall_AddReg]
HKR,,PortSubClass,1,01 ; "01" stands for serial port
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"


;-------------- 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 = %SmartpenCom.SvcName%, smartpen_wdfsect

[smartpen_wdfsect]
KmdfLibraryVersion = 1.7

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

[Strings]
Mfg = "LiveScribe"
Disk_Description = "Smartpen Installation Disk"
SmartpenCom.SvcDesc = "Smartpen Communications"
SmartpenCom.SvcName = "SmartpenCom"
SmartpenCom.DevDesc = "Smartpen Communications"
