M
M
markmariner2017-04-04 03:27:58
Windows
markmariner, 2017-04-04 03:27:58

How to create a simple Windows application that accepts data using a new protocol?

I want to write a small application but have never programmed under Windows.
The essence of the application is this: on the web page there is a link like this: myprotocol://address. The browser is configured to launch my application if the link is accessed using the myprotocol protocol. The application should accept the passed string and open the network folder in Explorer with the address computed from the passed address.
I don't really understand where to start at all; how exactly the application receives the parameter passed to it when launched by the browser, how not to display the console when the application starts, and how to ask the explorer to start with a specific address.
I understand that my questions are quite simple, so first of all I ask you to share links to these topics. A cursory googling didn't help me :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kestiq, 2017-04-04
@markmariner

Start here:
https://msdn.microsoft.com/en-us/library/aa767914(...
In short, you need to register your application in the system as a handler for the protocol you need. When you start your application, parameters will be passed to it from URIs that you can process.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question