use toaster sample to simulate USB device enumeration

Discussion in 'Windows Vista Drivers' started by Kevin, Nov 14, 2006.

  1. Kevin

    Kevin Guest

    I am studying the toaster on bus behavior. Now I want to know can I use this
    sample to simulate USB device plugin/unplug.
    1. can I use 'enum' console application to send the IOCTL to tell the
    busenum driver that a new USB device is plugged in? Do I need to modify the
    code of it?
    2. what do I need to modify the busenum driver code to tell PnP manager that
    a USB device is attached?

    Any comment is appreaciated.
     
    Kevin, Nov 14, 2006
    #1
    1. Advertisements

  2. Kevin

    Pavel A. Guest

    Perhaps the best thing for simulation USB devices is... the framework
    for simulation of USB devices. Included in the latest WDK.

    Regards.
    --PA
     
    Pavel A., Nov 14, 2006
    #2
    1. Advertisements

  3. Kevin

    Kevin Guest

    can the the framework for simulation of USB devices be used on Win2000 and
    WinXP?
     
    Kevin, Nov 15, 2006
    #3
  4. Kevin

    Pavel A. Guest

    On win2000, definitely not. On XP SP2+ may be.
    It depends on whether you simulate the device-side firmware,
    or something that runs on the host OS side.

    --PA
     
    Pavel A., Nov 15, 2006
    #4
  5. Kevin

    Bench Guest

    maybe IOCTL_INTERNAL_USB_CYCLE_PORT does what you want ( works on 2K too )?

    - Bernhard Ruhsam
     
    Bench, Nov 16, 2006
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.