Skip to content

Need advice?

Leave your details below and one of the team will get in touch.

Please do not use this form to share anyone’s personal details.

[USB_Install.Services] Include = machine.inf Needs = COMPORT.NT.Services

WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&attributes, DEVICE_EXTENSION); status = WdfDeviceCreate(&Device, &attributes, &Device); if (!NT_SUCCESS(status)) return status;

import usb.core dev = usb.core.find(idVendor=0x0E8D, idProduct=0x0003) dev.ctrl_transfer(bmRequestType=0x40, bRequest=0x01, wValue=0, wIndex=0, data_or_wLength=b'\xE8\x00\x00')

status = WdfUsbTargetDeviceSendControlTransferSynchronously( devExt->UsbDevice, WDF_NO_HANDLE, NULL, &setupPacket, &memDesc, NULL, &bytesTransferred);

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) WDF_DRIVER_CONFIG config; WDF_DRIVER_CONFIG_INIT(&config, BROM_EvtDeviceAdd); return WdfDriverCreate(DriverObject, RegistryPath, WDF_NO_OBJECT_ATTRIBUTES, &config, WDF_NO_HANDLE);

[USB_Install.HW] AddReg = COMAddReg

[Manufacturer] %MfgName% = MTKDevices, NTx86, NTamd64

// Write is symmetric — sends DA command (0xE8 handshake) Once driver is installed, you can use libusb or CreateFile on COM port: