Media keys hook - Open with

Since I've been having media keys requests in my app, I wanted to find a way on how to detect them.

I just wanted to know if they gave some code wich WM_KEYDOWN can return (like pause is 0x13, left windows key is 0x5B)

Also, when the program is already opened, if i do Open with on a file, it will bring the main program window on the top. Wich signal is windows telling to the program so I can handle it ?

#421747

WM_APPCOMMAND + lParam = APPCOMMAND_MEDIA_NEXTTRACK (etc)...

Use a shellhook if you also want to obtain the messages if your app doesn't have the focus.

Also, when the program is already opened, if i do Open with on a file, it will bring the main program window on the top. Wich signal is windows telling to the program so I can handle it ?

Might be anything from a MUTEX + SendMessage to main window to DDE, to IDropTarget shell handler.

#421748