; Copyright (c) 2012 libusbK ; ; Module Name: My.inf ; Description: Installation inf for Apple Cinema Display device. ; ; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY ; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE ; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR ; PURPOSE. [Strings] ; TODO: Assign friendly names to each of your devices. DeviceName_libusbK = "My Normal Device" DeviceName_libusb0 = "My Boot Loader Device" ; TODO: Set your company name in VendorName and SourceName. VendorName = "My, Inc." SourceName = "My Install Disk" ; TODO: Set your hardware IDs for each driver. DeviceID_libusbK = "VID_0000&PID_0000" DeviceID_libusb0 = "VID_0000&PID_0001" ; TODO: Set your device interface GUIDs, your application should use these for identification. DeviceGUID_libusbK = "{B6B39C83-7A86-79A7-A71E-E1914CA81AA3}" DeviceGUID_libusb0 = "{B6B39C83-7A86-79A7-A71E-E1914CA81AA4}" [Version] Signature = "$Windows NT$" ; TODO: Assign your own custom class name, GUID, and provider. ; GUID Generator: http://www.guidgenerator.com/online-guid-generator.aspx ; Once you've set your class parameters use them in *ALL* subsequent installs for these devices. Class = "My Usb Devices" ClassGuid = {ECFB0CFD-74C4-4f52-BBF7-343461CD72AC} Provider = "libusbK" ; TODO: Rename this inf file and use the same base bame Here. CatalogFile = My.cat ; TODO: When you update your package for future upgrades, make sure and set DriverVer. ; Windows will use this to tell if one package is newer than another. DriverVer = 02/09/2012, 3.0.5.5 ; ============== Class section ================== [ClassInstall32] Addreg = LUsbK_Class_AddReg [LUsbK_Class_AddReg] ; TODO: Set your device category group. Your devices will be listed under this name in device manager. ; NOTE: Generally we set this to the class name. HKR,,,0,"My Usb Devices" HKR,,Icon,,-20 ; ============== Device section ================= [Manufacturer] %VendorName% = LUsbK_DeviceGroup,NTX86,NTAMD64 ; For Win2K [LUsbK_DeviceGroup] %DeviceName_libusbK%=LUsbK_Device, USB\%DeviceID_libusbK% %DeviceName_libusb0%=LUsb0_Device, USB\%DeviceID_libusb0% ; For XP and later [LUsbK_DeviceGroup.NTX86] %DeviceName_libusbK%=LUsbK_Device, USB\%DeviceID_libusbK% %DeviceName_libusb0%=LUsb0_Device, USB\%DeviceID_libusb0% [LUsbK_DeviceGroup.NTAMD64] %DeviceName_libusbK%=LUsbK_Device, USB\%DeviceID_libusbK% %DeviceName_libusb0%=LUsb0_Device, USB\%DeviceID_libusb0% [LUsbK_Device.NT.HW] AddReg=LUsbK_Device_AddReg [LUsbK_Device.NTAMD64.HW] AddReg=LUsbK_Device_AddReg [LUsb0_Device.NT.HW] AddReg=LUsb0_Device_AddReg [LUsb0_Device.NTAMD64.HW] AddReg=LUsb0_Device_AddReg [LUsbK_Device_AddReg] HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID_libusbK% ; ======= Power policy settings (default) ======== ; Indicates whether the device is capable of being powered down when idle ; (Selective Suspend). HKR,,DeviceIdleEnabled,0x00010001,1 ; Sets the default value of the AUTO_SUSPEND power policy setting. This ; registry key is used to enable or disable selective suspend when a ; handle is not open to the device. HKR,,DefaultIdleState,0x00010001,0 ; Sets the default state of the SUSPEND_DELAY power policy setting. The ; value indicates the amount of time in milliseconds to wait before ; determining that a device is idle. HKR,,DefaultIdleTimeout,0x00010001,5000 ; When set to a nonzero value, it suspends the device even if it does not ; support RemoteWake. HKR,,DeviceIdleIgnoreWakeEnable,0x00010001,0 ; Indicates whether a check box should be enabled in the device Properties ; page that allows a user to override the idle defaults. HKR,,UserSetDeviceIdleEnabled,0x00010001,0 ; Indicates whether the device should be allowed to wake the system from a ; low power state. HKR,,SystemWakeEnabled,0x00010001,0 [LUsb0_Device_AddReg] HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID_libusb0% HKR,,SurpriseRemovalOK,0x00010001,1 ; ========== Driver/Service setup ============== [LUsbK_Device.NT.Services] Addservice=libusbK,2,LUsbK_AddService [LUsbK_Device.NTAMD64.Services] Addservice=libusbK,2,LUsbK_AddService [LUsb0_Device.NT.Services] Addservice=libusb0,2,LUsb0_AddService [LUsb0_Device.NTAMD64.Services] Addservice=libusb0,2,LUsb0_AddService [LUsbK_AddService] DisplayName="libusbK USB Driver 02/09/2012 - 3.0.5.5" ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\libusbK.sys AddReg=LUsbK_Driver_AddReg [LUsb0_AddService] DisplayName = "libusb-win32 - Kernel Driver 01/17/2012 1.2.6.0" ServiceType = 1 StartType = 3 ErrorControl = 0 ServiceBinary = %12%\libusb0.sys ; This optional entry identifies the load order group of which this driver is a member. ; LoadOrderGroup=Base [LUsbK_Driver_AddReg] HKR,"Parameters","DebugLevel",0x10001,4 ; =========== Sources/Destinations ============== [SourceDisksNames] 1 = %SourceName% [SourceDisksFiles.x86] libusbK.sys = 1,x86 libusbK_x86.dll = 1,x86 libusb0_x86.dll = 1,x86 WdfCoInstaller01009.dll = 1,x86 libusb0.sys = 1,x86 [SourceDisksFiles.amd64] WdfCoInstaller01009.dll = 1,amd64 libusbK.sys = 1,amd64 libusbK.dll = 1,amd64 libusb0.dll = 1,amd64 libusb0_x86.dll = 1,x86 libusbK_x86.dll = 1,x86 libusb0.sys = 1,amd64 [DestinationDirs] DefaultDestDir = 12 CoInstaller_CopyFiles = 11 libusbK_files_sys = 10,system32\drivers libusbK_files_dll = 10,system32 libusbK_files_dll_wow64 = 10,syswow64 libusbK_files_dll_x86 = 10,system32 libusb0_files_sys = 10,system32\drivers [libusb0_files_sys] libusb0.sys [libusbK_files_sys] libusbK.sys [libusbK_files_dll] libusbK.dll libusb0.dll [libusbK_files_dll_x86] libusbK.dll, libusbK_x86.dll libusb0.dll, libusb0_x86.dll [libusbK_files_dll_wow64] libusbK.dll, libusbK_x86.dll libusb0.dll, libusb0_x86.dll [LUsbK_Device.NT] CopyFiles = libusbK_files_sys, libusbK_files_dll_x86 [LUsbK_Device.NTAMD64] CopyFiles = libusbK_files_sys, libusbK_files_dll, libusbK_files_dll_wow64 [LUsb0_Device.NT] CopyFiles = libusb0_files_sys, libusbK_files_dll_x86 [LUsb0_Device.NTAMD64] CopyFiles = libusb0_files_sys, libusbK_files_dll, libusbK_files_dll_wow64 ; ========= WDF/CoInstaller section ============= [LUsbK_Device.NT.CoInstallers] AddReg=CoInstaller_AddReg CopyFiles=CoInstaller_CopyFiles [LUsbK_Device.NTAMD64.CoInstallers] AddReg=CoInstaller_AddReg CopyFiles=CoInstaller_CopyFiles [CoInstaller_CopyFiles] WdfCoInstaller01009.dll [CoInstaller_AddReg] HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller" [LUsbK_Device.NT.Wdf] KmdfService = libusbK, LUsbK_wdfsect [LUsbK_Device.NTAMD64.Wdf] KmdfService = libusbK, LUsbK_wdfsect [LUsbK_wdfsect] KmdfLibraryVersion=1.9