Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8996133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:42:49+00:00 2026-06-15T23:42:49+00:00

I’m in the initial stages of developing a companion application to an existing POS

  • 0

I’m in the initial stages of developing a companion application to an existing POS program. Basically I’m looking for pin pad like functionality. We have a Targus USB numerical keypad and want this available to the customer to enter a PIN number. (This is NOT for a payment system, just a customer account verification). The main POS program will be running, but I need my application to run in the background and wait for a PIN to be entered which it will then authenticate.

Possible Solution #1:
I downloaded a sample project from Code Project that addresses USB HID devices by VID & PID. this would be perfect, however keyboards are somehow protected by Windows and cannot be accessed this way. Is there a way to “Unreserve” the keypad in Windows so its still a HID device, but not seen as a keyboard?

Possible Solution #2:
There are samples of keyboard hooks, but these wont work either as the keypad output will still go to the POS application. I need the keypad output to ONLY go to my background application no matter what program has focus. Is there a way to redirect output from a specific keyboard to a specific application?

This will be rolled out to 100+ POS terminals in remote locations so a solution that doesn’t require re-configuration of windows would be preferable. It also needs to be in C# .NET 2.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:42:49+00:00Added an answer on June 15, 2026 at 11:42 pm

    Your best option is to buy a Joystick “Keyboard” so that you can read the device (USB HID) as a non-keyboard/non-mouse (as keyboards and mice are restricted by OS, non-bypass-able because it’s hard coded into the Device Management.)

    What I would recommend is looking an PI Engineering’s keyboard as their keyboards can be registered as joysticks. They have custom mapping software that simulates pressing a key on their devices to sending a key in the windows messaging queue (simulating a keyboard). Instead you can just program directly against the device (As each key is just a joystick button) using their SDK and won’t interfere with the POS software.

    PI Engineering Programmable Keyboards

    USB access description (Relevant section listed below in case the link dies)

    Microsoft Windows

    Windows Driver Development Kit HID

    The Windows DDK HID API is like the Apple HID Manager in that is a complicated, low-level API that closely mirrors USB HID. A program can access more or less every device, both input and output, except for the keyboard and mouse, which Microsoft has deliberately blocked from this API. Unlike the other APIs covered so far, the nature of the reading mechanism makes it quite difficult to use without having a thread dedicated to reading events from the queue. While at first glance it may seem necessary to purchase Microsoft’s Driver Development Kit in order to use this API, it is possible to use it with the free MinGW tools.

    In Windows, notifications of device plug and unplug events are sent to a window handle, so in order to receive them the hidio object needs it’s own (invisible) window which can then receive the notifications. In the current implementation the object automatically rebuilds the device list when it receive such a notification. Additionally, in case a device is currently open it checks whether the device is still connected or got removed.

    DirectInput

    Microsoft’s DirectInput API provides a relatively straightforward interface, but at the expense of flexibility. It has limited support for the USB HID device types and mainly aimed at the most popular gaming devices; in USB HID-speak, it only supports the `Generic Desktop Page’. It does provide access to the mouse and keyboard data, but not as individual devices. If there are multiple mice or keyboards attached, then all of the data is lumped into one virtual device. It does support Force Feedback, but not any other output type. Like Linux input.h, it has its own simplified event scheme, and also automatically scales some of the incoming data, which can be problematic.

    Windows Raw Input

    Raw Input is a new API as of Windows XP that was provided in response to developers’ desire to get raw access to the keyboard and mouse. It is the only way to get raw data from mice and keyboards on Windows. With Raw Input, it is possible to get the input events for any USB HID device, but output is not supported at all. For this reason, we have not explored Raw Input deeply yet, but we will probably use it in order to fully support keyboards and mice on Windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I would like to run a str_replace or preg_replace which looks for certain words
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
Let's say I'm outputting a post title and in our database, it's Hello Y’all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.