; copyright(C) Guangzhou ZHIYUAN Electronics Co., Ltd.

[Version]
Signature=$WINDOWS NT$
Class=visaUsbDevice
ClassGUID={A3330EDF-239D-4206-833B-1D58952613D5}
Provider=%Vendor0%
DriverVer=10/16/2018,1.0
CatalogFile=zds.cat

[ClassInstall32]
AddReg=AddClass_AddReg

[AddClass_AddReg]
HKR,,,0,%DeviceClassString%
HKR,,Icon,,"-20"

[Manufacturer]
%Vendor1%=USBList,NTamd64,NTarm,NTarm64

[USBList]
%USB\VID_04CC&PID_121C.DeviceDesc%=WinUsb_Inst, USB\VID_04CC&PID_121C

[USBList.NTamd64]
%USB\VID_04CC&PID_121C.DeviceDesc%=WinUsb_Inst, USB\VID_04CC&PID_121C

[USBList.NTarm]

[USBList.NTarm64]

[WinUsb_Inst]
Include = winusb.inf
Needs = WINUSB.NT

[WinUsb_Inst.hw]
AddReg=WinUsb_Inst_HW_AddReg

[WinUsb_Inst.Services]
Addservice = WinUsb, 0x00000002, WinUsb_AddService

[WinUsb_AddService]
DisplayName    = %WinUsb_Service_DisplayName%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\WinUSB.sys

[WinUsb_Inst_HW_AddReg]
HKR,,DeviceInterfaceGUIDs, 0x10000,"{761ED34A-CCFA-416b-94BB-33486DB1F5D5}"

[Strings]
Vendor0="Guangzhou ZHIYUAN Electronics Co., Ltd."
Vendor1="Guangzhou ZHIYUAN Electronics Co., Ltd."
USB\VID_04CC&PID_121C.DeviceDesc="ZDS4000 Digital Oscilloscope"
DeviceClassString="NI-VISA USB Devices"
WinUsb_Service_DisplayName="WinUSB Driver"

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

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

