;
; Copyright (C) 2009-2012 TOSHIBA CORPORATION. All Rights Reserved.
;
; TOSHIBA HDD Accelerator Driver
;    for Windows 7/8
;
[Version] 
Signature   = "$Windows NT$" 
Class       = DiskDrive
ClassGUID   = {4d36e967-e325-11ce-bfc1-08002be10318}
Provider    = %TOSHIBA%
CatalogFile = %DriverServiceName%.cat
DriverVer   = 08/09/2012, 1.01.0169.02

DriverPackageType=ClassFilter

[Manufacturer]
%TOSHIBA% = THAccelModel,ntamd64

[DestinationDirs]
DefaultDestDir                  = 12

[SourceDisksNames]
1=%DiskDesc%,

[SourceDisksFiles]
THAccel.sys=1

[THAccelModel.ntamd64]
%ServiceDescription%=THAccel,*

;;----- Driver -------------------------------
;  install section
[DefaultInstall.ntamd64]
CopyFiles = @THAccel.sys
AddReg = THAccel.AddReg

[THAccel.nt]
CopyFiles           = @THAccel.sys

[THAccel.nt.Services]
AddService          = %DriverServiceName%,,THAccel_Inst
AddReg              = THAccel.AddReg

; service sction
[DefaultInstall.ntamd64.Services]
AddService = %DriverServiceName%, , THAccel_Inst

[THAccel_Inst]
DisplayName      = %DriverServiceName%
Description      = %ServiceDescription%
ServiceBinary    = %12%\THAccel.sys
ServiceType      = %SERVICE_KERNEL_DRIVER%
StartType        = %SERVICE_BOOT_START%
ErrorControl     = %SERVICE_ERROR_NORMAL%
LoadOrderGroup   = "PnP Filter"
AddReg           = THAccel.AddRegistry

;; add registry
[THAccel.AddRegistry]
HKLM, System\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}, LowerFilters, 0x00010008, %DriverServiceName%
HKR, "Parameters", "L1_capable_in_kb",%REG_DWORD%,0x00000000

[THAccel.AddReg]
HKLM, System\CurrentControlSet\Control\Class\{4d36e967-e325-11ce-bfc1-08002be10318}, LowerFilters, 0x00010008, %DriverServiceName%
HKLM, "System\CurrentControlSet\Services\THAccel\Parameters", "L1_capable_in_kb",%REG_DWORD%,0x00000000

;;----- CoInstaller -------------------------------
[DestinationDirs]
THAccel_CoInst_Copy                = 11

[SourceDisksFiles]
WdfCoInstaller01009.dll=1

[THAccel.nt.CoInstallers]
AddReg              = THAccel_CoInst_AddReg
CopyFiles           = THAccel_CoInst_Copy

[THAccel.nt.Wdf]
KmdfService = %DriverServiceName%,THAccel_kmdf_sect

[THAccel_CoInst_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[THAccel_CoInst_Copy]
WdfCoInstaller01009.dll

[THAccel_kmdf_sect]
KmdfLibraryVersion = 1.9

;; String Section
[Strings] 
;  *******Localizable Strings******* 
TOSHIBA = "TOSHIBA CORPORATION" 
ServiceDescription      = "TOSHIBA HDD Accelerator Driver"
DiskDesc                = "TOSHIBA HDD Accelerator Driver Disk"
DriverServiceName       = "THAccel"

;  *******Non Localizable Strings******* 
SERVICE_BOOT_START = 0x0 
SERVICE_SYSTEM_START = 0x1 
SERVICE_AUTO_START = 0x2 
SERVICE_DEMAND_START = 0x3 
SERVICE_DISABLED = 0x4 

SERVICE_FILE_SYSTEM_DRIVER = 0x2
SERVICE_KERNEL_DRIVER = 0x1 
SERVICE_ERROR_IGNORE = 0x0 
SERVICE_ERROR_NORMAL = 0x1 
SERVICE_ERROR_SEVERE = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

;  *******Registry Data Types*******
REG_SZ                  = 0x00000000
REG_BINARY              = 0x00000001
REG_SZ_NOCLOBBER        = 0x00000002
REG_BINARY_NOCLOBBER    = 0x00000003
REG_MULTI_SZ            = 0x00010000
REG_DWORD               = 0x00010001
REG_MULTI_SZ_NOCLOBBER  = 0x00010002
REG_DWORD_NOCLOBBER     = 0x00010003
REG_EXPAND_SZ           = 0x00020000
REG_EXPAND_SZ_NOCLOBBER = 0x00020002
