Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Connection to contactless card reader

Connection to contactless card reader

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hristiyan
    wrote on last edited by
    #1

    Hello there, i'm trying to connect to a contactless card reader via USB. I'm using the SetupDiGetClassDevs -> SetupDiEnumDeviceInterfaces -> SetupDiGetDeviceInterfaceDetail -> CreateFile-> DeviceIoControl But unfortuantly my method fails. I cant get the device handle from CreateFile , because the USB divice name that i get from the SetupDiGetDeviceInterfaceDetail cannot be directly used for the CreateFile. My USB device name is \\\\?\\usb#vid_072f&pid_8003#5&1903a12b&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed} But i guess the string has to be formatted is some kind of way so it can be used in the CreateFile method/ Please help !

    M 1 Reply Last reply
    0
    • H Hristiyan

      Hello there, i'm trying to connect to a contactless card reader via USB. I'm using the SetupDiGetClassDevs -> SetupDiEnumDeviceInterfaces -> SetupDiGetDeviceInterfaceDetail -> CreateFile-> DeviceIoControl But unfortuantly my method fails. I cant get the device handle from CreateFile , because the USB divice name that i get from the SetupDiGetDeviceInterfaceDetail cannot be directly used for the CreateFile. My USB device name is \\\\?\\usb#vid_072f&pid_8003#5&1903a12b&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed} But i guess the string has to be formatted is some kind of way so it can be used in the CreateFile method/ Please help !

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      Check this out ;P link[^]

      H 1 Reply Last reply
      0
      • M musefan

        Check this out ;P link[^]

        H Offline
        H Offline
        Hristiyan
        wrote on last edited by
        #3

        Thank you for your answer but that doesnt help me at all :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups