Global keyhook for mediakeys in C #
With the following function,
I can globally connect the usual modifier key combinations:
[private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk);]
Great article on this and full source code here: http://www.liensberger.it/web/blog/?p=207
But the question is, how can I connect Media Keys, those play / pause / next / previous buttons found in keyboards and remotes for PC? I have googled and googled but with no luck.
source to share