CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Posts
    2

    Detecting a usb key plugin

    hi,
    I wanted to know how I would be able to detect whenever a usb key is plugged in.
    Any help appreciated.
    -chit

  2. #2
    Join Date
    Dec 2008
    Posts
    114

    Re: Detecting a usb key plugin

    It's a FAQ . You can ask on Win32 grp)
    for official code (used in Explorer source code...)

  3. #3
    Join Date
    May 2005
    Posts
    4,954

    Re: Detecting a usb key plugin

    You can try WM_DEVICECHANGE.

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured