I want to subscribe to a custom URL protocol, eg. "pdf" meaning when specially crafted links like the below link are clicked, I get an event (windows launches my EXE passing the link args as command line args). I've done this once before in a VC++ app but can't remember how to do this for the life of me.
Eg link:
pdf://ANY ARGS
Clicking on the above link should launch my EXE with the command line args:
"ANY ARGS"