7

Possible Duplicates:
how do I create my own URL protocol? (e.g. so://…)
How do I register a custom URL protocol in Windows?

Is there a way to associate a scheme, like cms:// to a Windows program?

So when an user types cms://user:password@server.com, it opens the program and can automatically connect using the given credentials.

Community
  • 1
  • 1
Ronald
  • 1,795
  • 14
  • 17

2 Answers2

5

This is covered in an MSDN article called Registering an Application to a URL Protocol

nikmd23
  • 9,095
  • 4
  • 42
  • 57
  • Didn't knew it was that easy... Couldn't find it, because I was searching on scheme instead of protocol :S Thank you! – Ronald Jul 06 '09 at 21:05
  • I probably wasn't the only one, since the MSDN article is renamed to 'Registering an Application to a URI Scheme' ;-) – Ronald Jan 04 '18 at 10:10
1

What you need to know to register an application to a URL Protocol:

http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx

Tells you the registry details and gives you a code sample.

Wadih M.
  • 12,810
  • 7
  • 47
  • 57