v4 Driver Usbmon bidi communication

Ahmad, Farooq 20 Reputation points
2026-06-10T10:06:44.92+00:00

DeviceBidi.xml DeviceBidi.txt

Hi Folks,

I am facing issue with adding bidi into my v4 driver. I donot see any logs in event viewer. I have attached my .js(as txt) and .xml files. Thank you

Best Regards Farooq

Windows development | Windows Driver Kit (WDK)
0 comments No comments

Answer accepted by question author
Farooq Ahmad 85 Reputation points
2026-06-12T15:38:05.6333333+00:00

Its working now. I will create an other thread for Printer extension, if i need help. Thanks Tom for your help.

Was this answer helpful?

2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Tom Tran (WICLOUD CORPORATION) 5,945 Reputation points Microsoft External Staff Moderator
    2026-06-10T11:49:28.36+00:00

    Hi @Ahmad, Farooq ,

    Before checking the USB command itself, I would like to first confirm whether Windows is actually loading the Bidi XML and JavaScript files.

    From the USB Bidi Extender documentation, USBMon needs to find the Bidi XML and JavaScript files from the v4 driver manifest or driver INI before the script can run.

    Could you please check and confirm these points?

    1. In your INF/manifest/INI file, are DeviceBidi.xml and your JavaScript file referenced with the exact same file names as the files included in the driver package? If possible, please share only the related lines where these two files are referenced.
    2. After reinstalling the driver, please check: %windir%\inf\setupapi.dev.log Then search for: DeviceBidi.xml and the actual JavaScript file name you are using.
    3. Do you see entries showing that both files were copied or installed successfully?
    4. In Event Viewer, please check: Applications and Services Logs > Microsoft > Windows > PrintService Please check both Admin and Operational logs, and confirm whether there is any event showing that the Bidi script was loaded, or any error related to the XML/JavaScript file.

    If the XML or JavaScript file is not being installed or loaded, then scriptContext.Log() will not appear and the JavaScript code will not run.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.