简体   繁体   中英

How can i set my c# program as default-browser which accepts http/https links?

I want my program to listen for links, which were send by other applications as default browser.

I tried out some searchings but i only found this article:

https://docs.microsoft.com/de-de/windows/desktop/shell/default-programs#becoming-the-default-browser

and i also cannot find an example, which shows up a way to solve this.

I hope for answers and would like to say "Thank you" to all answers.

Greetings

Penc

Originally it was just possible for your programm to set any file or protcoll asocaition. What happens was the predictable: Every other programmer abused that.

So it had to be take away and moved into the Default Programms UI . Now you can only tell windows your programms is avalible for that format.

But you can not become the default anymore without user action or maybe some Admin Level Operations/Registery editing. Maybe there is a odd allowances (for the common Browsers for example), but those will be on a case by case basis.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM