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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Win2k Keyboard Port

Win2k Keyboard Port

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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.
  • J Offline
    J Offline
    Joe OConnor
    wrote on last edited by
    #1

    In our EPos program (running on a Win98 computer), I am using the "_inp" and "_outp" functions to get the status of the Credit Card reader (attached to the Keyboard). The commands are: Keyboard Status Enquiry _inp(0x64); Enable Card Reader _outp(0x60, 0xd3); Disable Card Reader _outp(0x60, 0xd4); These commands always crash the Win2k machine, I guess it has something to do about reading/writting to an address. So is there a LEGAL (or EASY) way of reading/writting this data to the Keyboard port on a Win2k machine, or is the keyboard located at a different port ?. Any help would do - honest.

    L 1 Reply Last reply
    0
    • J Joe OConnor

      In our EPos program (running on a Win98 computer), I am using the "_inp" and "_outp" functions to get the status of the Credit Card reader (attached to the Keyboard). The commands are: Keyboard Status Enquiry _inp(0x64); Enable Card Reader _outp(0x60, 0xd3); Disable Card Reader _outp(0x60, 0xd4); These commands always crash the Win2k machine, I guess it has something to do about reading/writting to an address. So is there a LEGAL (or EASY) way of reading/writting this data to the Keyboard port on a Win2k machine, or is the keyboard located at a different port ?. Any help would do - honest.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      KB article Q112298 discusses this - on NT IN OUT instructions are privileged. I'm surprised you can do this on 98. Learn something every day, I guess. :)

      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