How do I use .NET to define CUSTOM url protocol (i.e. myProt://host:port/hey) ?

  • Thread starter Thread starter Grandma Wilkerson
  • Start date Start date
G

Grandma Wilkerson

Hey, this is your grandmother!!!

I've designed a WinForms app that performs a task [how's THAT for
vague?].

The app connects to another machine on the Intranet or Internet that is
ALSO running the same app and listening on a particular port. The two
instances of the app then talk back and forth about various topics. I want
my users to be able to connect to a "granny" site without having to manually
load my app. For example, I'd like the user to be able to launch my app by
clicking on this type of link:

granny://hostname:port/Instruction

Notice that "granny" is the protocol specifier. When the link is
clicked, my app should automatically launch and the URL should be passed as
a command line argument. My app will then connect to hostname:port and
perform a particular instruction.

How can my installation program tell Windows that "granny" is a type of
protocol and that phrases that begin with "granny://" that are encountered
in web sites, emails, etc. are actually links that should be highlighted and
when clicked should launch my WinForms app?

Your Grandmother
 
Back
Top