CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Feb 2008
    Posts
    7

    Exclamation Identification of USB flash disk in VB6

    Hi all!

    I need help in VB6 under Win XP. I need to read VID and PID of my USB flash disk in VB6. I googled many examples but nothing works

    My disk is connected for example as drive "I:\" and by some utilities I found that it has both VID and PID. How to read this information in VB6?

    I need something easy like:

    Code:
    dim VID
    dim PID 
    
    sub GetVIDandPID(Path as string) 
       ...??? something to get VID and PID ???...  
    end sub 
    
    sub main()
       GetVIDandPID "I:\" 
       msgbox VID & " " & PID 
    end sub
    I will be very happy if anybody knows some method which WORKS!

    Thanks a lot.
    Last edited by PeejAvery; February 18th, 2008 at 10:50 AM. Reason: Added code tags.

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