;
; CDC ACM Modem
;

[Version]
Signature="$WINDOWS NT$"
Class=Modem
ClassGUID={4D36E96D-E325-11CE-BFC1-08002BE10318}
Provider=%PROVIDER%
DriverVer=01/12/2011,4.3.36.3512
CatalogFile=ips_polsat_drivers.cat

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

[ips_polsat_cdc_acm]
%Dev.1A8D.2001.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2001&MI_00
%Dev.1A8D.2003.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2003&MI_00
%Dev.1A8D.2005.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2005&MI_00

[ips_polsat_cdc_acm.NTx86]
%Dev.1A8D.2001.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2001&MI_00
%Dev.1A8D.2003.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2003&MI_00
%Dev.1A8D.2005.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2005&MI_00

[ips_polsat_cdc_acm.NTamd64]
%Dev.1A8D.2001.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2001&MI_00
%Dev.1A8D.2003.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2003&MI_00
%Dev.1A8D.2005.00%=DevInstall, USBCDCACM\VID_1A8D&PID_2005&MI_00



[DevInstall.NT]
CopyFiles = AcmInstall_CopyFiles
include = mdmgl010.inf
AddReg = All, Mfg_AddReg, Model_AddReg, EXTERNAL, MDMGL010.ALL, MDMGL010.NUMERICS, MDMGL010.V34SHORT,MDMGL010.V90LONG, MDMGL010.V90SHORT

[AcmInstall_CopyFiles]
ips_polsat_cdc_acm.sys,,,%COPYFLG_NO_VERSION_DIALOG%    ; Copy if newer

[DevInstall.NT.Services]
AddService=%cdc_acm.SvcName%, 0x00000000, AcmInstall_AddService, AcmInstall_Logging_Inst

;-------------------------------------------------------------------------------
; ACM service

[AcmInstall_AddService]
DisplayName     = %cdc_acm.SvcDesc%
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
AddReg          = AcmInstall_AddService_AddReg
ServiceBinary   = %12%\ips_polsat_cdc_acm.sys

[AcmInstall_AddService_AddReg]
HKR, Parameters\Wdf, VerboseOn,       %FLG_ADDREG_TYPE_DWORD%, 0
HKR, Parameters\Wdf, VerifierOn,      %FLG_ADDREG_TYPE_DWORD%, 0
HKR, Parameters\Wdf, DbgBreakOnError, %FLG_ADDREG_TYPE_DWORD%, 0
HKR, Parameters,     DebugLevel,      %FLG_ADDREG_TYPE_DWORD%, 2
HKR, Parameters,     Provider,        %FLG_ADDREG_TYPE_SZ%,    %PROVIDER%

[DevInstall.NT.HW]
AddReg = AcmInstall_NT_HW_AddReg

[AcmInstall_NT_HW_AddReg]
HKR,,"LowerFilters",%FLG_ADDREG_TYPE_MULTI_SZ%,%cdc_acm.SvcName%
HKR,,"DataInPacketsPerXfer",%FLG_ADDREG_TYPE_DWORD%,0x8 ; USB packets per single IN request
HKR,,"DataInBuffers",%FLG_ADDREG_TYPE_DWORD%,0x80 ; Number of USB IN requests to be buffered
HKR,,"CtrlDevHoldChildIfInUse",%FLG_ADDREG_TYPE_DWORD%,0x0
HKR,,"CallClearData",0x00010001,0x0 ; Reset IN/OUT pipes upon device wakeup and
                                    ; file open
;HKR,,"DataOutZeroPacketEnable",%FLG_ADDREG_TYPE_DWORD%,0x01 ; Send zero packet after USB OUT
    ; when byte count is an integer multiple of max packet size

;-------------------------------------------------------------------------------
; ACM An event-log-install-section 

[AcmInstall_Logging_Inst]
AddReg = AcmInstall_Logging_Inst_AddReg

[AcmInstall_Logging_Inst_AddReg]
HKR,,EventMessageFile,%FLG_ADDREG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\ips_polsat_cdc_acm.sys"
HKR,,TypesSupported,%FLG_ADDREG_TYPE_DWORD%,7

;
;-------------- WDF Coinstaller installation
;
[DevInstall.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[DevInstall.NT.Wdf]
KmdfService = %cdc_acm.SvcName%, cdc_acm_modem_wdfsect

[DestinationDirs]
CoInstaller_CopyFiles = 11

[SourceDisksFiles.x86]
WdfCoInstaller01009.dll=1,"\x86"

[SourceDisksFiles.amd64]
WdfCoInstaller01009.dll=1,"\amd64"

[CoInstaller_AddReg]
HKR,,CoInstallers32,%FLG_ADDREG_TYPE_MULTI_SZ%, "WdfCoInstaller01009.dll,WdfCoInstaller"

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll,,,%COPYFLG_NO_OVERWRITE%

[cdc_acm_modem_wdfsect]
KmdfLibraryVersion = 1.9

;-------------------------------------------------------------------------------------------------------
; DDK procalc tool can be used to check properties settings which describes modem properties.
; Generally, customization entries are added here which override commands from the All section

;--------------------------------------------------------------------------------------------------------------------------
;This section will define the type of modem and thus present the appropriate icon in the Device manager

[EXTERNAL]
HKR,, DeviceType, 1, 01

;-------------------------------------------------------------------------------------------------------------------------
; Responses section contains all of the appropriate and required responses in order for the O/S to understand the 
; Modem responses to system queries.

[All]
HKR,,ConfigDialog,,modemui.dll
HKR,,EnumPropPages,,"modemui.dll,EnumPropPages"
HKR,,PortSubClass,1,02
HKR,Init,1,,"AT<cr>"

[Mfg_AddReg]

HKR, Init, 1,, "AT<cr>"				
HKR, Init, 2,, "ATE0V1<cr>"			
HKR, Monitor, 1,, "ATS0=0<cr>"		
HKR, Monitor, 2,, "None"			
HKR, Answer, 1,, "ATA<cr>"			
HKR, Hangup, 1,, "ATH<cr>"			
HKR,, Reset,, "ATZ<cr>"	
HKR, Settings, Prefix,, "AT"
HKR, Settings, Terminator,, "<cr>"
HKR, Settings, DialPrefix,, "D"		
HKR, Settings, Pulse,, "P"			
HKR, Settings, Tone,, "T"			
									
HKR, Settings, FlowControl_Off,,  ""
HKR, Settings, FlowControl_Hard,, ""
HKR, Settings, FlowControl_Soft,, ""

HKR, Responses, "<cr>",        1, 01, 00, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<lf>",        1, 01, 00, 00,00,00,00, 00,00,00,00	
HKR, Responses, "0<cr>",       1, 00, 00, 00,00,00,00, 00,00,00,00 	
HKR, Responses, "2<cr>",       1, 08, 00, 00,00,00,00, 00,00,00,00 	
HKR, Responses, "3<cr>",       1, 04, 00, 00,00,00,00, 00,00,00,00 	
HKR, Responses, "4<cr>",       1, 03, 00, 00,00,00,00, 00,00,00,00 	
HKR, Responses, "6<cr>",       1, 05, 00, 00,00,00,00, 00,00,00,00 	
HKR, Responses, "7<cr>",       1, 06, 00, 00,00,00,00, 00,00,00,00 	
HKR, Responses, "8<cr>",       1, 07, 00, 00,00,00,00, 00,00,00,00 	
HKR, Responses, "10<cr>", 1, 02, 00, 60,09,00,00, 00,00,00,00		
HKR, Responses, "11<cr>", 1, 02, 00, c0,12,00,00, 00,00,00,00		
	
HKR, Responses, "<cr><lf>OK",          1, 00, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>RING",        1, 08, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO CARRIER",  1, 04, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>ERROR",       1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO DIALTONE", 1, 05, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO DIAL TONE",1, 05, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>BUSY",        1, 06, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>NO ANSWER",   1, 07, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>FAX",         1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>DATA",        1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>VOICE",       1, 03, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>RINGING",     1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>DIALING",     1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>RRING",       1, 01, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>DELAYED",     1, 1d, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>BLACKLISTED", 1, 1c, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>+FCERROR",    1, 03, 00, 00,00,00,00, 00,00,00,00
				

HKR, Responses, "<cr><lf>CONNECT<cr><lf>",   1, 02, 00, 00,00,00,00, 00,00,00,00
HKR, Responses, "<cr><lf>CONNECT 300<cr><lf>",1, 02, 00, 2C,01,00,00, 2C,01,00,00
HKR, Responses, "<cr><lf>CONNECT 600<cr><lf>",1, 02, 00, 58,02,00,00, 58,02,00,00
HKR, Responses, "<cr><lf>CONNECT 0600<cr><lf>",1, 02, 00, 58,02,00,00, 58,02,00,00
HKR, Responses, "<cr><lf>CONNECT 1200<cr><lf>",1, 02, 00, B0,04,00,00, B0,04,00,00
HKR, Responses, "<cr><lf>CONNECT 2400<cr><lf>",1, 02, 00, 60,09,00,00, 60,09,00,00
HKR, Responses, "<cr><lf>CONNECT 4800<cr><lf>",1, 02, 00, C0,12,00,00, C0,12,00,00
HKR, Responses, "<cr><lf>CONNECT 7200<cr><lf>",1, 02, 00, 20,1C,00,00, 20,1C,00,00
HKR, Responses, "<cr><lf>CONNECT 9600<cr><lf>",1, 02, 00, 80,25,00,00, 80,25,00,00
HKR, Responses, "<cr><lf>CONNECT 12000<cr><lf>",1, 02, 00, E0,2E,00,00, E0,2E,00,00
HKR, Responses, "<cr><lf>CONNECT 14400<cr><lf>",1, 02, 00, 40,38,00,00, 40,38,00,00
HKR, Responses, "<cr><lf>CONNECT 16800<cr><lf>",1, 02, 00, A0,41,00,00, A0,41,00,00
HKR, Responses, "<cr><lf>CONNECT 19200<cr><lf>",1, 02, 00, 00,4B,00,00, 00,4B,00,00
HKR, Responses, "<cr><lf>CONNECT 21600<cr><lf>",1, 02, 00, 60,54,00,00, 60,54,00,00
HKR, Responses, "<cr><lf>CONNECT 24000<cr><lf>",1, 02, 00, C0,5D,00,00, C0,5D,00,00
HKR, Responses, "<cr><lf>CONNECT 26400<cr><lf>",1, 02, 00, 20,67,00,00, 20,67,00,00
HKR, Responses, "<cr><lf>CONNECT 28800<cr><lf>",1, 02, 00, 80,70,00,00, 80,70,00,00
HKR, Responses, "<cr><lf>CONNECT 38400<cr><lf>",1, 02, 00, 00,96,00,00, 00,96,00,00
HKR, Responses, "<cr><lf>CONNECT 57600<cr><lf>",1, 02, 00, 00,E1,00,00, 00,E1,00,00
HKR, Responses, "<cr><lf>CONNECT 115200<cr><lf>",1, 02, 00, 00,C2,01,00, 00,C2,01,00
HKR, Responses, "<cr><lf>CONNECT 230400<cr><lf>",1, 02, 00, 00,84,03,00, 00,84,03,00
HKR, Responses, "<cr><lf>CONNECT 236800<cr><lf>",1, 02, 00, 00,9D,03,00, 00,9D,03,00
HKR, Responses, "<cr><lf>CONNECT 0900000<cr><lf>",1, 02, 08, A0,BB,0D,00, A0,BB,0D,00
HKR, Responses, "<cr><lf>CONNECT 1200000<cr><lf>",1, 02, 08, 80,4F,12,00, 80,4F,12,00
HKR, Responses, "<cr><lf>CONNECT 1800000<cr><lf>",1, 02, 08, 40,77,1B,00, 40,77,1B,00
HKR, Responses, "<cr><lf>CONNECT 3600000<cr><lf>",1, 02, 08, 80,EE,36,00, 80,EE,36,00
HKR, Responses, "<cr><lf>CONNECT 7200000<cr><lf>",1, 02, 08, 00,DD,6D,00, 00,DD,6D,00
HKR, Responses, "<cr><lf>CONNECT 10000000<cr><lf>",1, 02, 08, 80,96,98,00, 80,96,98,00
HKR, Responses, "<cr><lf>CONNECT 10200000<cr><lf>",1, 02, 08, C0,A3,9B,00, C0,A3,9B,00
HKR, Responses, "<cr><lf>CONNECT 14000000<cr><lf>",1, 02, 08, 80,9F,D5,00, 80,9F,D5,00
HKR, Responses, "<cr><lf>CONNECT 14400000<cr><lf>",1, 02, 08, 00,BA,DB,00, 00,BA,DB,00
HKR, Responses, "<cr><lf>CONNECT 21096000<cr><lf>",1, 02, 08, 40,E6,41,01, 40,E6,41,01

HKR, Responses, "<cr><lf>CARRIER 300",     1, 01, 00, 2C,01,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 1200",    1, 01, 00, B0,04,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 1200/75", 1, 01, 00, B0,04,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 75/1200", 1, 01, 00, B0,04,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 2400",    1, 01, 00, 60,09,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 4800",    1, 01, 00, C0,12,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 7200",    1, 01, 00, 20,1C,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 9600",    1, 01, 00, 80,25,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 12000",   1, 01, 00, E0,2E,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 14400",   1, 01, 00, 40,38,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 16800",   1, 01, 00, A0,41,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 19200",   1, 01, 00, 00,4B,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 21600",   1, 01, 00, 60,54,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 24000",   1, 01, 00, C0,5D,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 26400",   1, 01, 00, 20,67,00,00, 00,00,00,00			
HKR, Responses, "<cr><lf>CARRIER 28800",   1, 01, 00, 80,70,00,00, 00,00,00,00			

HKR, Responses, "<cr><lf>COMPRESSION: CLASS 5",  1, 01, 03, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>COMPRESSION: MNP5",     1, 01, 03, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>COMPRESSION: V.42BIS",  1, 01, 03, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>COMPRESSION: V.42 BIS", 1, 01, 03, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>COMPRESSION: V.42bis",  1, 01, 03, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>COMPRESSION: V.42 bis", 1, 01, 03, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>COMPRESSION: ADC",      1, 01, 01, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>COMPRESSION: NONE",     1, 01, 00, 00,00,00,00, 00,00,00,00	
																								
HKR, Responses, "<cr><lf>PROTOCOL: NONE",                   1, 01, 00, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: ERROR-CONTROL/LAPB",     1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: ERROR-CONTROL/LAPB/HDX", 1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: ERROR-CONTROL/LAPB/AFT", 1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: X.25/LAPB",              1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: X.25/LAPB/HDX",          1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: X.25/LAPB/AFT",          1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: LAPM",                   1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: LAP-M",                  1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: LAPM/HDX",               1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: LAP-M/HDX",              1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: LAPM/AFT",               1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: LAP-M/AFT",              1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: ALT",                    1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: ALT-CELLULAR",           1, 01, 0A, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: MNP",                    1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: MNP2",                   1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: MNP3",                   1, 01, 02, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>PROTOCOL: MNP4",                   1, 01, 02, 00,00,00,00, 00,00,00,00	

HKR, Responses, "<cr><lf>AUTOSTREAM: LEVEL 1", 1, 01, 00, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>AUTOSTREAM: LEVEL 2", 1, 01, 00, 00,00,00,00, 00,00,00,00	
HKR, Responses, "<cr><lf>AUTOSTREAM: LEVEL 3", 1, 01, 00, 00,00,00,00, 00,00,00,00


[Model_AddReg]
HKR,, Properties, 1, 80,01,00,00, 00,00,00,00, 00,00,00,00, 00,00,00,00, 00,00,00,00, 00,01,00,00, 00,BA,DB,00, 00,BA,DB,00

;---------------------------------------------------------------;
; Uninstall

[Uninstall]
DelFiles=AcmInstall_CopyFiles

[Uninstall.HW]
DelReg=AcmInstall_NT_HW_AddReg

[Uninstall.Services]
DelService=%cdc_acm.SvcName%,0x00000204  ;SPSVCINST_DELETEEVENTLOGENTRY||SPSVCINST_STOPSERVICE 

;---------------------------------------------------------------;
[Manufacturer]
%MANUFACTURER%=ips_polsat_cdc_acm,NTx86,NTamd64

[DestinationDirs]
DefaultDestDir=12

[SourceDisksNames]
; diskid = disk-description[,[tag-or-cab-file],[unused,path][,flags]]
1=%DISKID%,

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

[SourceDisksFiles.amd64]
ips_polsat_cdc_acm.sys=1,"\amd64"
;---------------------------------------------------------------;


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

Dev.1A8D.2001.00 = "Cyfrowy Polsat HSPA Modem"
Dev.1A8D.2003.00 = "Cyfrowy Polsat HSPA Modem"
Dev.1A8D.2005.00 = "Cyfrowy Polsat HSPA Modem"


cdc_acm.SvcDesc             = "Cyfrowy Polsat HSPA CDC-ACM driver"
cdc_acm.SvcName             = "ips_polsat_cdc_acm"

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

