How to get usb port number when magnetic card reader swap in magnetic card reader?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robin Jain

    #1

    How to get usb port number when magnetic card reader swap in magnetic card reader?

    Hii
    I am using VB.Net 2005
    I have some query which are as follow

    1--How to find out that in which usb port my magnetic card reader is Connected ????

    2--How to get usb port number when magnetic card reader swap in magnetic card reader ???


    3--When a person swap a magnetic card in magnetic card reader then how should i find out that from which "magnetic card reader" card is swapped
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    That is a question you would need to take up with the manufacturer of the card reader/maker of the driver for the card reader.

    There is no good .NET way to do this (unless the card reader shows up as a COM port). You could try using WMI, or native win32_API

    Comment

    Working...