Thread: Faking USB input

  1. #1
    return 0;
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    89

    Faking USB input

    Does anyone know wether it's possible to fake USB input using the win32 API? For example: even if I don't have a webcam, can I make my computer think there is a webcam attached to one of the USB port's and send images from the "webcam" to an application/the OS?

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    I think you'd need to make a virtual USB hub driver first, as there's no way you could convince Windows to send things "from" the USB ports when it's actually from memory or wherever. You'd thus need a driver to emulate a USB hub, so you can synthesize the lot.

    Of course, you might not be talking about USB ports per sé, because I've certainly never seen any program that specifically looks for webcams on named USB ports (Once upon a time, you could webcams that connected via normal serial ports! Shocking!!! ). In that case, all you'd need is a virtual Video Capture driver, which would be recognised by most video-oriented programs as a capture source.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. input redirection
    By sashaKap in forum C Programming
    Replies: 6
    Last Post: 06-25-2009, 01:59 AM
  2. For loop problems, input please.
    By xIcyx in forum C Programming
    Replies: 2
    Last Post: 04-22-2007, 03:54 AM
  3. I would love some input on my BST tree.
    By StevenGarcia in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2007, 01:22 AM
  4. Replies: 16
    Last Post: 10-29-2006, 05:04 AM
  5. Simple Console Input for Beginners
    By jlou in forum C++ Programming
    Replies: 0
    Last Post: 06-21-2005, 01:50 PM