Jump to content

Detect USB devices

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
live4nothing

live4nothing

    Newbie

  • Members
  • Pip
  • 1 posts
Hello everyone,
I am working in a project that requires to detect the presence of a USB device. Is there anyway I can detect such event? Thanks

#2
gaylo565

gaylo565

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 268 posts
You need to detect the windows messages that are put out (assuming that you are using windows.) here is a link to a tutorial which explains the basics of wm checking: CodeProject: Detecting USB Drive Removal in a C# Program. Free source code and programming help