none
Device simulation framework ( dsf interop assemblies for managed code) RRS feed

  • Question

  • Hello there,

    https://msdn.microsoft.com/en-us/library/ff538287.aspx

    I am following the above article to write the virtual USB device using the dsf.

    As per the instructions I have installed the com interop on the build computer and used the managed code interop reference using the dll in GAC (also tried tlbimp), but I get exception that classId is not registered, even when I have done regasm dsf.interop.dll)

    "Retrieving the COM class factory for component with CLSID {44DD6DC0-6427-4C02-8D5C-1179C50C65D7} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

    I am referencing the dll from a c# console app. 

    Thanks for your help.


    Nothing is impossible, it may be just extremely difficult..

    Wednesday, August 31, 2016 10:52 PM

Answers

  • Windows 10 apparently supports emulated USB devices (UDE). It is however based on KMDF, rather than user-mode COM. I don't think Microsoft provides a way to interface your C# code with it.
    • Edited by ranta Tuesday, September 6, 2016 5:58 PM accidentally pressed Submit too early
    • Marked as answer by Doron Holan [MSFT] Tuesday, September 6, 2016 8:39 PM
    Tuesday, September 6, 2016 5:57 PM
  • DSF is no longer supported (the last WDK supporting it was win7).

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, September 1, 2016 4:51 PM
  • correct. no c# implementation

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, September 6, 2016 8:39 PM

All replies

  • DSF is no longer supported (the last WDK supporting it was win7).

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, September 1, 2016 4:51 PM
  • I am using win7 only. 

    Is there any recommendation / replacement how to implement it going forward (esp for window 10). 

    Thanks.


    Nothing is impossible, it may be just extremely difficult..

    Thursday, September 1, 2016 6:45 PM
  • Windows 10 apparently supports emulated USB devices (UDE). It is however based on KMDF, rather than user-mode COM. I don't think Microsoft provides a way to interface your C# code with it.
    • Edited by ranta Tuesday, September 6, 2016 5:58 PM accidentally pressed Submit too early
    • Marked as answer by Doron Holan [MSFT] Tuesday, September 6, 2016 8:39 PM
    Tuesday, September 6, 2016 5:57 PM
  • correct. no c# implementation

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Tuesday, September 6, 2016 8:39 PM
  • hi, is there a way to simulate keyboard press (low level) virtual keyboard.

    Previously Microsoft support this in WDK 7 works on windows 7. but i need this in windows 10. is there any solution?

    Tuesday, January 23, 2018 10:24 AM
  • is there a solution for this one? 
    even running a script to simulate the keyboard press like dsf script in WDK 7.1
    Tuesday, January 23, 2018 10:27 AM