;--------- Version Section ---------------------------------------------------
[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36fc9e60-c465-11cf-8056-444553540000}
Provider=%Provider%
DriverVer=08/16/2011,2.00.0001
CatalogFile=TC4850.cat

[ControlFlags]
; Pnp drivers should not be installable via non-PnP hardware dialogs
ExcludeFromSelect = *

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
DefaultDestDir = 10
TC4850_Files_Driver1 = 12
TC4850_Files_Driver2 = 12
TC4850_Files_Driver3 = 12

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
; These sections identify source disks and files for installation.

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
TC4850.sys  = 1,,
TC4850NTAMD64.sys  = 1,,
TC4850NTIA64.sys  = 1,,

;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName% = TC4850_Mfg,NTAMD64,NTIA64

[TC4850_Mfg]
; DisplayName               Section           DeviceId
%TC4850_DeviceDesc1%=TC4850_DDI, USB\VID_0471&PID_0666

[TC4850_Mfg.NTAMD64]
; DisplayName               Section           DeviceId
%TC4850_DeviceDesc2%=TC4850_DDI_NTAMD64, USB\VID_0471&PID_0666

[TC4850_Mfg.NTIA64]
; DisplayName               Section           DeviceId
%TC4850_DeviceDesc3%=TC4850_DDI_NTIA64, USB\VID_0471&PID_0666


;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 98 -----------------

; Experimentation has shown that DDInstall root names greater than 19 characters
; cause problems in Windows 98

;[TC4850_DDI]
;CopyFiles=TC4850_Files_Driver1
;AddReg=TC4850_9X_AddReg

[TC4850_DDI_NTAMD64]
CopyFiles=TC4850_Files_Driver2
AddReg=TC4850_NTAMD64_AddReg

[TC4850_DDI_NTIA64]
CopyFiles=TC4850_Files_Driver3
AddReg=TC4850_NTIA64_AddReg



;[TC4850_9X_AddReg]
;HKR,,DevLoader,,*ntkern
;HKR,,NTMPDriver,,TC4850.sys
;HKR,,Description,,%TC4850_DeviceDesc1%

[TC4850_NTAMD64_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,TC4850NTAMD64.sys
HKR,,Description,,%TC4850_DeviceDesc2%

[TC4850_NTIA64_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,TC4850NTIA64.sys
HKR,,Description,,%TC4850_DeviceDesc3%

; --------- Windows NT -----------------

[TC4850_DDI.NT]
CopyFiles=TC4850_Files_Driver1


[TC4850_DDI.NT.Services]
Addservice = TC4850, %FLG_ADDREG_NOCLOBBER%, TC4850_Service1

[TC4850_DDI_NTAMD64.Services]
Addservice = TC4850NTAMD64, %FLG_ADDREG_NOCLOBBER%, TC4850_Service2

[TC4850_DDI_NTIA64.Services]
Addservice = TC4850NTIA64, %FLG_ADDREG_NOCLOBBER%, TC4850_Service3

; --------- Service ----------------------

[TC4850_Service1]
DisplayName    = %TC4850_SvcDesc1%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\TC4850.sys
LoadOrderGroup = Extended Base

[TC4850_Service2]
DisplayName    = %TC4850_SvcDesc2%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\TC4850NTAMD64.sys
LoadOrderGroup = Extended Base

[TC4850_Service3]
DisplayName    = %TC4850_SvcDesc3%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\TC4850NTIA64.sys
LoadOrderGroup = Extended Base

; --------- Files ----------------------

[TC4850_Files_Driver1]
TC4850.sys,,,2

[TC4850_Files_Driver2]
TC4850NTAMD64.sys,,,2

[TC4850_Files_Driver3]
TC4850NTIA64.sys,,,2


;--------- Strings Section ---------------------------------------------------

[Strings]
Provider = "ZhongKe Instruments"
MfgName  = "ZhongKe Instruments"
TC4850_DeviceDesc1 = "TC4850 Vibration Monitor"
TC4850_DeviceDesc2 = "TC4850 Vibration Monitor"
TC4850_DeviceDesc3 = "TC4850 Vibration Monitor"

TC4850_SvcDesc1 = "Driver for X86 System"
TC4850_SvcDesc2 = "Driver for X64 System"
TC4850_SvcDesc3 = "Driver for IA64 System"

DiskId1 = "TC4850 Device Installation Disk #1"

REG_SZ                      = 0x00000000
REG_MULTI_SZ                = 0x00010000
REG_EXPAND_SZ               = 0x00020000
REG_BINARY                  = 0x00000001
REG_DWORD                   = 0x00010001
REG_NONE                    = 0x00020001

SERVICE_KERNEL_DRIVER       = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER  = 0x00000002
SERVICE_ADAPTER             = 0x00000004
SERVICE_RECOGNIZER_DRIVER   = 0x00000008

SERVICE_BOOT_START          = 0x0
SERVICE_SYSTEM_START        = 0x1
SERVICE_AUTO_START          = 0x2
SERVICE_DEMAND_START        = 0x3
SERVICE_DISABLED            = 0x4

SERVICE_ERROR_IGNORE        = 0x00000000
SERVICE_ERROR_NORMAL        = 0x00000001
SERVICE_ERROR_SEVERE        = 0x00000002
SERVICE_ERROR_CRITICAL      = 0x00000003

FLG_ADDREG_NOCLOBBER        = 0x00000002
FLG_ADDREG_DELVAL           = 0x00000004
FLG_ADDREG_APPEND           = 0x00000008
FLG_ADDREG_KEYONLY          = 0x00000010
FLG_ADDREG_OVERWRITEONLY    = 0x00000020
FLG_ADDREG_64BITKEY         = 0x00001000
FLG_ADDREG_KEYONLY_COMMON   = 0x00002000
FLG_ADDREG_32BITKEY         = 0x00004000

