I have IBM ThinkPad notebook and PCMCIA sound card.
Volume control works only for integrated sound card. I want to fix it somehow by writing small application.
I tried to find codes of these keys like this:
private void Form1_KeyUp(object sender, KeyEventArgs e)
{
labelKeyCode.Text = e.KeyCode.ToString();
}
However this is not working. Im not getting any codes. It looks like these keys are not part of "keyboard device".
Note: this code was just for code preview, in my application I want to use WINAPI for global keyboard capture.
How can I capture these keys?
Edit:
I tried to reverse-engineer a little, and I browsed "HKVOLKEY.dll" (file from IBM Hotkey software) with Dependency Walker, but i found only 2 function names there: RegisterVolumeHotkey and DeregisterVolumeHotkey.