Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Keyboard Filter Driver. Scan Code -> VK_??? (OEM Specific)

rMidirMidi Member Posts: 1

Preface (Imaginary. So someone does not ask 'What are you trying to do?):
I have a Win32 C++ application.
This application wants to know when the user wants to open the start menu via Ctrl+Esc
Of course, Ctrl+Esc is fired from the operating system so the application never see's it.

I have looked at Windows Virtual Keys.
I see that there are plenty of OEM specific VK's

So my thought was:

  • Keyboard Filter Driver.
  • When my application has the focus it tells the Keyboard Filter Driver.
  • When my driver sees the Ctrl is down and an Esc down occurs (And my application has focus):
    -- Swallow the Esc and replace it with a scan code that will produce say a VK_0x92 (OEM Specific).

  • Since I have swallowed the Esc the operating system will never see Ctr+Esc

  • My application will then see the VK_0x92 and know the user wants to open the start menu and perform some action.

My question is how do I 'muck' the input within my driver (KEYBOARD_INPUT_DATA) in order for a say
VK_0x92 to appear within my application?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE