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. How can I open PS/2 port

How can I open PS/2 port

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • A Offline
    A Offline
    asd1753
    wrote on last edited by
    #1

    hi How can I open PS/2 port?? thanks

    B 1 Reply Last reply
    0
    • A asd1753

      hi How can I open PS/2 port?? thanks

      B Offline
      B Offline
      Blake Coverett
      wrote on last edited by
      #2

      Why do you want to, do you have something other than a mouse or keyboard attached to it? -- -Blake (com/bcdev/blake)

      A 1 Reply Last reply
      0
      • B Blake Coverett

        Why do you want to, do you have something other than a mouse or keyboard attached to it? -- -Blake (com/bcdev/blake)

        A Offline
        A Offline
        asd1753
        wrote on last edited by
        #3

        I want to spy Mouse data from PS/2 port . if anyone know , please help me.

        B 1 Reply Last reply
        0
        • A asd1753

          I want to spy Mouse data from PS/2 port . if anyone know , please help me.

          B Offline
          B Offline
          Blake Coverett
          wrote on last edited by
          #4

          You still skipped the 'why' part of the question. Is this mouse still supposed to work in Windows while you are spying on it? If so you can't just 'open the port' anyways, as if you are reading from it the operating system can't be reading from it at the same time. If you really need the low level bits coming from the mouse you would have to write a filter driver. To do this, install the DDK and have a look at the sample in src\input\moufiltr. I doubt however that you really need this, and writing drivers is not for the faint of heart. If you are running on XP or later, you should use the Raw Input model. Have a look on MSDN for RegisterRawInputDevice. If you have to support older versions of Windows, you should probably stick with hooks. In that case, have a look on MSDN for SetWindowsHookEx. -Blake

          A 1 Reply Last reply
          0
          • B Blake Coverett

            You still skipped the 'why' part of the question. Is this mouse still supposed to work in Windows while you are spying on it? If so you can't just 'open the port' anyways, as if you are reading from it the operating system can't be reading from it at the same time. If you really need the low level bits coming from the mouse you would have to write a filter driver. To do this, install the DDK and have a look at the sample in src\input\moufiltr. I doubt however that you really need this, and writing drivers is not for the faint of heart. If you are running on XP or later, you should use the Raw Input model. Have a look on MSDN for RegisterRawInputDevice. If you have to support older versions of Windows, you should probably stick with hooks. In that case, have a look on MSDN for SetWindowsHookEx. -Blake

            A Offline
            A Offline
            asd1753
            wrote on last edited by
            #5

            Hi Blake Coverett thanks for your reply . My english writing is very bad sorry. i want unplug a mouse from computer and turn on it , then after loading the windowsxp , plug in the PS/2 mouse and open it's port and read its data bits . please more help me . I guess that RegisterRawInputDevices can help me , but I can't findout it . If possible for you help me more. :rose::rose::rose:

            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