You've got to add a few keys to HKEY_CLASSES_ROOT.
The structure looks like this:
HKEY_CLASSES_ROOT\POKER\shell\open\command
For the default value of the command key, use the path to your application.
You also need to add an empty string value under HKEY_CLASSES_ROOT\POKER names "URL Protocol", and for the default value of HKEY_CLASSES_ROOT\POKER, use "URL: Poker".
You'll also need to add another key under HKEY_CLASSES_ROOT\POKER\shell\open called ddeexec. The default value of that key should be %1. This allows you to use the entire command line in your application. i.e. if you wrote your program in VB6, the variable Command$ would contain the entire command that loaded the application: poker://TexasHoldEm@192.123.12.123 or whatever, and you'd have to parse out the useful data.



LinkBack URL
About LinkBacks

Reply With Quote
Bookmarks