;--------------------------------------------------------------------------
; RimUsb.INF (WinXP/2003/Vista/2008/Win7)
;
; Copyright (c) 2013 BlackBerry Limited 
; All rights reserved.
;
;--------------------------------------------------------------------------

[Version]
Signature="$CHICAGO$"
Class=RIMUSBBB
ClassGUID={17FDD8F0-53DF-406f-8287-8C38F6FC9BCC} 
Provider=%RIMMfg%
CatalogFile=RimUsbNT.cat         
DriverVer=04/16/2014,4.2.0.32

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%RIMMfg%=RIM,ntamd64

[DestinationDirs]
DefaultDestDir  = 12
CoInstaller_CopyFiles = 11

[SourceDisksNames]
1 = %CD_Description%,,,

[SourceDisksFiles]
RimUsb.sys = 1 
RimUsb_AMD64.sys = 1 
WdfCoInstaller01007.dll=1 ; make sure the number matches with SourceDisksNames

; ================= Class section =====================

[ClassInstall32]
Addreg=RIMUSBBBClassReg     

[RIMUSBBBClassReg]
HKR,,,0,"BlackBerry"
HKR,,Icon,,-20

;--------------------------------------------------------------------------
;      R I M - R e s e a r c h   I n   M o t i o n
;--------------------------------------------------------------------------
[RIM]
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_0006
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_0004&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_0001
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_0007&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_0008&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_000A&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8006
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8004&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8001
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8007&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8008&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_800A&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_800B&MI_02
%Rimusb.DeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8020
%Rimusb.NetDeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8012&MI_02
%Rimusb.NetDeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8016&MI_02
%Rimusb.NetDeviceDesc%=RimUsb.Device.NT, USB\VID_0fca&PID_8017&MI_04

[RIM.ntamd64]
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_0006
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_0004&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_0001
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_0007&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_0008&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_000A&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8006
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8004&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8001
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8007&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8008&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_800A&MI_00
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_800B&MI_02
%Rimusb.DeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8020
%Rimusb.NetDeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8012&MI_02
%Rimusb.NetDeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8016&MI_02
%Rimusb.NetDeviceDesc%=RimUsb.Device.ntamd64, USB\VID_0fca&PID_8017&MI_04


;--------------------------------------------------------------------------
;     W i n d o w s   X P / 2 0 0 3 / V i s t a / 2 0 0 8 / 7
;--------------------------------------------------------------------------
[RimUsb.Device.NT]
AddReg    = RimUsb.AddReg, RimUsb.NT.AddReg
CopyFiles = RimUsb.CopyList

[RimUsb.Device.ntamd64]
AddReg    = RimUsb.AddReg, RimUsb.ntamd64.AddReg
CopyFiles = RimUsb.CopyList.amd64


;--------------------------------------------------------------------------
;      A d d R e g
;--------------------------------------------------------------------------
[RimUsb.AddReg]
HKR,,DevLoader,,*ntkern


;--------------------------------------------------------------------------
;      C o p y F i l e s
;--------------------------------------------------------------------------
[RimUsb.CopyList]
RimUsb.sys

[RimUsb.CopyList.amd64]
RimUsb_AMD64.sys


;--------------------------------------------------------------------------
;      S e r v i c e s
;--------------------------------------------------------------------------
[RimUsb.NT.AddReg]
HKR,,NTMPDriver,,RimUsb.sys
HKR, "RimUsb\Parameters","MaximumTransferSize",0x00001,64 
HKR, "RimUsb\Parameters","DriverVersion",0x0,"4.2.0.32"
HKR, "RimUsb\Parameters\Wdf", "VerboseOn",       0x00010001, 1
HKR, "RimUsb\Parameters\Wdf", "VerifierOn",      0x00010001, 1
HKR, "RimUsb\Parameters\Wdf", "DbgBreakOnError", 0x00010001, 1
[RimUsb.Device.NT.Services]
Addservice = RimUsb, 0x00000002, RimUsb.Device.ServiceInstall

[RimUsb.ntamd64.AddReg]
HKR,,NTMPDriver,,RimUsb_AMD64.sys
HKR, "RimUsb\Parameters","MaximumTransferSize",0x00001,64 
HKR, "RimUsb\Parameters","DriverVersion",0x0,"4.2.0.32"
HKR, "RimUsb\Parameters\Wdf", "VerboseOn",       0x00010001, 1
HKR, "RimUsb\Parameters\Wdf", "VerifierOn",      0x00010001, 1
HKR, "RimUsb\Parameters\Wdf", "DbgBreakOnError", 0x00010001, 1

[RimUsb.Device.ntamd64.Services]
Addservice = RimUsb, 0x00000002, RimUsb.Device.ServiceInstall.ntamd64

[RimUsb.Device.ServiceInstall]
DisplayName    = %RimUsb.DeviceDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\RimUsb.sys
LoadOrderGroup = Base

[RimUsb.Device.ServiceInstall.ntamd64]
DisplayName    = %RimUsb.DeviceDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\RimUsb_AMD64.sys
LoadOrderGroup = Base

;-------------- WDF Coinstaller installation

[RimUsb.Device.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[RimUsb.Device.ntamd64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01007.dll,,0x40    ; COPYFLG_OVERWRITE_OLDER_ONLY

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01007.dll,WdfCoInstaller"

[RimUsb.Device.NT.Wdf]
KmdfService = RimUsb, RimUsb_wdfsect

[RimUsb.Device.ntamd64.Wdf]
KmdfService = RimUsb, RimUsb_wdfsect

[RimUsb_wdfsect]
KmdfLibraryVersion = 1.7


;--------------------------------------------------------------------------
;      S t r i n g s (English)
;--------------------------------------------------------------------------
[Strings]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry Smartphone"
RimUsb.NetDeviceDesc = "BlackBerry Device"
CD_Description    = "BlackBerry User Tools CD"


;--------------------------------------------------------------------------
;      S t r i n g s . F r e n c h
;--------------------------------------------------------------------------
[Strings.040c]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "Téléphone intelligent BlackBerry "
RimUsb.NetDeviceDesc = "terminal BlackBerry"
CD_Description    = "CD Outils utilisateur BlackBerry"

;--------------------------------------------------------------------------
;      S t r i n g s . G e r m a n
;--------------------------------------------------------------------------
[Strings.0407]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry-Smartphone"
RimUsb.NetDeviceDesc = "BlackBerry-Gerät"
CD_Description    = "CD „BlackBerry User Tools“"


;--------------------------------------------------------------------------
;      S t r i n g s . I t a l i a n
;--------------------------------------------------------------------------
[Strings.0410]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "Smartphone BlackBerry"
RimUsb.NetDeviceDesc = "Dispositivo BlackBerry"
CD_Description    = "BlackBerry User Tools CD"


;--------------------------------------------------------------------------
;      S t r i n g s . S p a n i s h
;--------------------------------------------------------------------------
[Strings.040a]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "Smartphone BlackBerry"
RimUsb.NetDeviceDesc = "Dispositivo BlackBerry"
CD_Description    = "BlackBerry User Tools CD"


;--------------------------------------------------------------------------
;      S t r i n g s . H u n g a r i a n
;--------------------------------------------------------------------------
[Strings.040e]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry okostelefon"
RimUsb.NetDeviceDesc = "BlackBerry készülék"
CD_Description    = "BlackBerry Felhasználói Segédeszközök CD-lemez"


;--------------------------------------------------------------------------
;      S t r i n g s . C z e c h
;--------------------------------------------------------------------------
[Strings.0405]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "zařízení BlackBerry Smartphone"
RimUsb.NetDeviceDesc = "Zařízení BlackBerry"
CD_Description    = "disk CD Uživatelské nástroje BlackBerry"


;--------------------------------------------------------------------------
;      S t r i n g s . P o l i s h
;--------------------------------------------------------------------------
[Strings.0415]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "Smartfon BlackBerry"
RimUsb.NetDeviceDesc = "Urządzenie BlackBerry"
CD_Description    = "BlackBerry User Tools CD"


;--------------------------------------------------------------------------
;      S t r i n g s . B r a z i l i a n   P o r t u g u e s e
;--------------------------------------------------------------------------
[Strings.0416]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "Smartphone BlackBerry"
RimUsb.NetDeviceDesc = "Aparelho BlackBerry"
CD_Description    = "BlackBerry User Tools CD"


;--------------------------------------------------------------------------
;      S t r i n g s . S i m p l i f i e d   C h i n e s e ( P R C )
;--------------------------------------------------------------------------
[Strings.0804]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry 智能手机"
RimUsb.NetDeviceDesc = "BlackBerry 设备"
CD_Description    = "BlackBerry User Tools 光盘"


;--------------------------------------------------------------------------
;      S t r i n g s . C h i n e s e   ( S i n g a p o r e )
;--------------------------------------------------------------------------
[Strings.1004]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry 智能手机"
RimUsb.NetDeviceDesc = "BlackBerry 设备"
CD_Description    = "BlackBerry User Tools 光盘"


;---------------------------------------------------------------------------
;      S t r i n g s . T r a d i t i o n a l   C h i n e s e ( T a i w a n )
;---------------------------------------------------------------------------
[Strings.0404]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry 智慧型手機"
RimUsb.NetDeviceDesc = "BlackBerry 裝置"
CD_Description    = "BlackBerry User Tools CD"

;---------------------------------------------------------------------------
;      S t r i n g s . C h i n e s e   ( H o n g   K o n g )
;---------------------------------------------------------------------------
[Strings.0c04]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry 智慧型手機"
RimUsb.NetDeviceDesc = "BlackBerry 裝置"
CD_Description    = "BlackBerry User Tools CD"

;---------------------------------------------------------------------------
;      S t r i n g s . C h i n e s e   ( M a c a u )
;---------------------------------------------------------------------------
[Strings.1404]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry 智慧型手機"
RimUsb.NetDeviceDesc = "BlackBerry 裝置"
CD_Description    = "BlackBerry User Tools CD"


;--------------------------------------------------------------------------
;      S t r i n g s . T u r k i s h
;--------------------------------------------------------------------------
[Strings.041F]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry Akıllı Telefon"
RimUsb.NetDeviceDesc = "BlackBerry Cihaz"
CD_Description    = "BlackBerry User Tools CD'si"

;--------------------------------------------------------------------------
;      S t r i n g s . J a p a n e s e
;--------------------------------------------------------------------------
[Strings.0411]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry スマートフォン"
RimUsb.NetDeviceDesc = "BlackBerry デバイス"
CD_Description    = "BlackBerry ユーザーツール CD"

;--------------------------------------------------------------------------
;      S t r i n g s . K o r e a n
;--------------------------------------------------------------------------
[Strings.0412]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "BlackBerry 스마트폰"
RimUsb.NetDeviceDesc = "BlackBerry 단말기"
CD_Description    = "BlackBerry User Tools CD"

;--------------------------------------------------------------------------
;      S t r i n g s . P o r t u g u e s e
;--------------------------------------------------------------------------
[Strings.0816]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "Smartphone BlackBerry"
RimUsb.NetDeviceDesc = "Dispositivo BlackBerry"
CD_Description    = "CD de ferramentos do utilizador BlackBerry"

;--------------------------------------------------------------------------
;      S t r i n g s . R u s s i a n
;--------------------------------------------------------------------------
[Strings.0419]
RIMMfg            = "BlackBerry"
RimUsb.DeviceDesc = "Смартфон BlackBerry"
RimUsb.NetDeviceDesc = "Устройство BlackBerry"
CD_Description    = "Компакт-диск с утилитами для пользователя BlackBerry"
