; INF file for installing the Configuration Policy Driver

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
DriverVer=01/12/2011,4.3.36.3512
Provider=%PROVIDER%
CatalogFile=ips_polsat_drivers.cat

[ControlFlags]
ExcludeFromSelect = *

[DestinationDirs]
DefaultDestDir=12

[SourceDisksNames]
1 = %DISKID%,,,

[SourceDisksFiles.x86]
ips_polsat_cpo.sys=1,"\x86"

[SourceDisksFiles.amd64]
ips_polsat_cpo.sys=1,"\amd64"

[Manufacturer]
%MANUFACTURER%=ips_polsat_cpo,NTx86,NTamd64

[ips_polsat_cpo]
%Dev.1A8D.2000%=DevInstall, USB\VID_1A8D&PID_2000

[ips_polsat_cpo.NTx86]
%Dev.1A8D.2000%=DevInstall, USB\VID_1A8D&PID_2000

[ips_polsat_cpo.NTamd64]
%Dev.1A8D.2000%=DevInstall, USB\VID_1A8D&PID_2000



[DevInstall]
Include=usbstor.inf
AddReg=USBSTOR_BULK.AddReg
CopyFiles=USBSTOR.CopyList, DevInstall.Files

[DevInstall.HW]
AddReg=DevInstall.HW.Reg




[DevInstall.Services]
Include=usbstor.inf
AddService=%CPO.SvcName%, 0x00000000, DevInstall.Service, DevInstall.EventLog
AddService=USBSTOR, %SPSVCINST_ASSOCSERVICE%, USBSTOR.AddService

[DevInstall.Files]
ips_polsat_cpo.sys

[DevInstall.HW.Reg]
HKR,,"UpperFilters",%FLG_ADDREG_TYPE_MULTI_SZ%,%CPO.SvcName%
HKR,,DeviceCharacteristics,%FLG_ADDREG_TYPE_DWORD%,0x0100       ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)"    ; 'generic-all' access to Built-in admins and Local system

; Service

[DevInstall.Service]
DisplayName     = %CPO.SVCDesc%
ServiceType     = 1         ; SERVICE_KERNEL_DRIVER
StartType       = 3         ; SERVICE_DEMAND_START
ErrorControl    = 1         ; SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\ips_polsat_cpo.sys
AddReg          = DevInstall.Service.Reg
LoadOrderGroup  = Extended Base

[DevInstall.Service.Reg]
HKR, "Parameters", Provider, %FLG_ADDREG_TYPE_SZ%, %PROVIDER%
HKR, "Parameters", DebugZones, %FLG_ADDREG_TYPE_DWORD%, 0x00000103		; Errors
HKR, "Parameters", DebugFlags, %FLG_ADDREG_TYPE_DWORD%, 0x00000003		; Errors & Warnings
HKR, "Parameters", EventLogLevel, %FLG_ADDREG_TYPE_DWORD%, 0x00000003	; Errors & Warnings
HKR, "Parameters", SafeLockTimeout, %FLG_ADDREG_TYPE_DWORD%, 60000
HKR, "Parameters", ConfigSwitchEnabled, %FLG_ADDREG_TYPE_DWORD%, 1
HKR, "Parameters", ModemLogPortsEnabled, %FLG_ADDREG_TYPE_DWORD%, 1

[DevInstall.EventLog]
AddReg = DevInstall.EventLog.Reg

[DevInstall.EventLog.Reg]
HKR,, EventMessageFile, %FLG_ADDREG_EXPAND_SZ%, "%%SystemRoot%%\System32\drivers\ips_polsat_cpo.sys;%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,, TypesSupported,   %FLG_ADDREG_TYPE_DWORD%, 7

; Uninstall

[Uninstall]
DelFiles=DevInstall.Files

[Uninstall.HW]
DelReg=DevInstall.HW.Reg


[Uninstall.Services]
DelService=%CPO.SvcName%, 0x00000204

; Strings

[Strings]
; Localizable Strings

PROVIDER                    = "IPS"
MANUFACTURER                = "IPS"
DISKID                      = "Cyfrowy Polsat HSPA Device Installation Disk #1"

Dev.1A8D.2000 = "Cyfrowy Polsat HSPA Install Device (CPO)"


CPO.SvcDesc             = "Cyfrowy Polsat HSPA Mass Storage Device"
CPO.SvcName             = "ips_polsat_cpo"

SPSVCINST_TAGTOFRONT                 = 0x00000001
SPSVCINST_ASSOCSERVICE               = 0x00000002
SPSVCINST_DELETEEVENTLOGENTRY        = 0x00000004
SPSVCINST_NOCLOBBER_DISPLAYNAME      = 0x00000008
SPSVCINST_NOCLOBBER_STARTTYPE        = 0x00000010
SPSVCINST_NOCLOBBER_ERRORCONTROL     = 0x00000020
SPSVCINST_NOCLOBBER_LOADORDERGROUP   = 0x00000040
SPSVCINST_NOCLOBBER_DEPENDENCIES     = 0x00000080
SPSVCINST_NOCLOBBER_DESCRIPTION      = 0x00000100
SPSVCINST_STOPSERVICE                = 0x00000200

FLG_ADDREG_KEYONLY          = 0x00000010
FLG_ADDREG_TYPE_MULTI_SZ    = 0x00010000
FLG_ADDREG_TYPE_DWORD       = 0x00010001
FLG_ADDREG_TYPE_BIN         = 0x00000001
FLG_ADDREG_TYPE_SZ          = 0x00000000
FLG_ADDREG_EXPAND_SZ        = 0x00020000

COPYFLG_WARN_IF_SKIP        = 0x00000001
COPYFLG_NOSKIP              = 0x00000002
COPYFLG_NOVERSIONCHECK      = 0x00000004
COPYFLG_FORCE_FILE_IN_USE   = 0x00000008
COPYFLG_NO_OVERWRITE        = 0x00000010
COPYFLG_NO_VERSION_DIALOG   = 0x00000020
COPYFLG_OVERWRITE_OLDER_ONLY= 0x00000040
COPYFLG_REPLACEONLY         = 0x00000400
COPYFLG_NODECOMP            = 0x00000800
COPYFLG_REPLACE_BOOT_FILE   = 0x00001000
COPYFLG_NOPRUNE             = 0x00002000
COPYFLG_IN_USE_RENAME       = 0x00004000

SERVICE_ERROR_CRITICAL        = 0x00000003
SERVICE_ERROR_IGNORE          = 0x00000000
SERVICE_ERROR_NORMAL          = 0x00000001
SERVICE_ERROR_SEVERE          = 0x00000002
SERVICE_AUTO_START            = 0x00000002
SERVICE_BOOT_START            = 0x00000000
SERVICE_DEMAND_START          = 0x00000003
SERVICE_DISABLED              = 0x00000004
SERVICE_INTERACTIVE_PROCESS   = 0x00000100
SERVICE_SYSTEM_START          = 0x00000001
SERVICE_ADAPTER               = 0x00000004
SERVICE_FILE_SYSTEM_DRIVER    = 0x00000002
SERVICE_KERNEL_DRIVER         = 0x00000001
SERVICE_RECOGNIZER_DRIVER     = 0x00000008
SERVICE_WIN32_OWN_PROCESS     = 0x00000010
SERVICE_WIN32_SHARE_PROCESS   = 0x00000020

SELECTIVE_SUSPEND_IDLE_TIMEOUT = 0x0
