Video Miniport Driver On and Off using Hotkeys - windows

I am new to the Windows device drivers development world. I don't find anything related this topic.
I want to control Video miniport of windows 7/2008 by using hotkey. If I hit the hotkey for example Ctrl+s, the monitor is off, keyboard and mouse should diable(except my hotkey) and hit it again the same key monitor on( when the monitor on it goes to the lock screen), keybaord and mouse is enable.It should toggle every time if I hit the hotkey.
It works very similar to the win+L but the monitor turn on if you hit any key.But I want very specific key on the monitor, even Ctrl alt Delet should not on the monitor.The keyboard and mouse disable in this state.The main purpose I am doing this when the monitor is off/sleep mode it does not respond the ctrl alt dele events.I am disconnecting the monitor from ctrl alt dele even trigeer but monitor on and off using my hotkey only.
I know easy way to doing by autohotkey script to on and off monitor. But you can not stop
interrupt generated by ctrl alt dele keys. For that I don't want to hack ctrl alt dele key instead I control the video miniport to toggle the monitor on and off using hotkey( any combination hotkey is fine but on and off monitor with same hotkey).
I am Linux device driver developer.I don't have experience on Windows device drives programming.Please guide me what are the possibilities and how complex it is(to successfully controlling video port through keyboard). I did research on MSDN site ... but I don't know where to start.
thank you in advance for help

Related

What's the MacOS API to "capture" the mouse and keyboard, the way a VM or remote desktop program would do?

I'm looking for the Mac OS API that virtual machine or remote desktop type programs would use to "capture" the mouse and keyboard. That is to say, I want to write a GUI program where when the user clicks in my window, the normal mouse cursor disappears, and all keyboard and mouse input is diverted to my program, including global shortcuts like cmd-tab. What's the name of this API?
Found it: CGEventTapCreate can tap into the low level event stream to receive, filter, or insert HID events.

Run a program on: hard "Power" button press

I want to run a program (exe file) when the Power button of my laptop is pressed. (Not when system is shutting down)
I tried getting its keycode using c# and js, but none of them capture this keypress as they only capture keyboard buttons. Look at the drop-down menu I have opened:
My problem would be solved if they add "Run a specific program..." in this drop-down:
But of course they won't add this option!
So, how do I get it done? Maybe using Task Scheduler?
There's no keycode for the power button. The driver is sitting between your OS and your hardware. When you push the "G" button on your keyboard, the driver translates that to an OS system call representing the "G" key which your program can listen for and intercept. But there's no OS system call for a representing the "power" button. Instead, your driver is translating that to OS system calls to initiate a shutdown, turn off the monitor, etc.
Your laptop driver allows you to configure which system call you want to initiate when the power button is pressed, but that driver is going to be unique to the brand and model of your laptop, and if they don't offer support for capturing that keypress through their driver, then you probably don't have any easy way to intercept it.

Navigating inside Device Manager of windows 8 using only keyboard to enable Laptop Touchpad

My laptop touchpad was annnoying so i disabled it in the device manager. Now my curiosity is
How to enable touchpad using device manager without using external
mouse && using only the keyboard.
Please suggest alternatives that doesnt include installing softwares or touchpad drivers.
I have already done following steps:
windows key + x
selected device manager using up/down arrow.
for selecting mice and other pointers i tried and failed in following keys
up/down arrow
alt+up, alt+down.etc
windows + X to open device manager
TAB to jump into device tree
arrow down to go to mice and other pointing devices
arrow right to open mice and other pointing devices
arrow down to select your device
menu key to open context menu
arrow down to select activate device

Communication between two kernel-mode drivers

I have keyboard filter driver installed on my VMWare virtual machine on win 8.1. I'm able to print pressing keys on console by debug print.
Now i need to move cursor using keyboard arrows. And here is the question, how to tell mouse driver that we want to move cursor?
Usually, when we want move our cursor, we just move our mouse and it works. It generates interruption and call mouse driver. Is it possible to call samo interruption from my keyboard filter driver?

Sending Keyboard Shortcuts to OSX instead of separate commands

I was wondering how osx interprets keyboard shortcuts vs multiple keys being pressed at the same time.
For example, I have the control + left setup to move spaces to the left. When I use my keyboard osx interprets it as a shortcut.
Using http://manytricks.com/keycodes/ it does not even register, the OS seems to short-circuit the command on seems to know that it corresponds to a keyboard shortcut.
When using an external usb footswitch that sends the control key signal and the keyboard to send the left key signal the os Does not interpret it as a shortcut but instead interprets this as a control + left key As seen in the photo below
I posted this on apple.stackexchange but was hoping for a more technical answer
https://apple.stackexchange.com/questions/140732/sending-controlleft-command-with-external-footswitch-delcom-only-picking-up-c
The goal is to get the footswitch to send a correct control signal (key codes says it is sending the exact same control signal as when I hit the left control key on my keyboard)
The footswitch works as expected under ubuntu
Thank you
oh boy, from kinesis website
Note: Modifier actions from one USB device cannot modify the input of a second USB device due to limitations designed into the Apple operating system. Example: Shift, Control, Command, or Option keystrokes programmed into the footswitch cannot modify the input of a separate USB keyboard or mouse. However, a key sequence like ‘Cmd-W’ or ‘Cmd-Shift-left arrow’ will work on a Macintosh if the entire sequence of keystrokes has been pre-programmed into the footswitch. (Footswitch can only be programmed on a Windows PC).
I just tried this using my usb keyboard and built in osx keyboard and it seems to be true. I can hit control + left on my usb keyboard and it works fine but control on my usb keyboard + left on the builtin keyboard does not work:(

Resources