Getting Default browser

后端 未结 5 456
轻奢々
轻奢々 2020-12-18 02:58

How can I determine which is the default browser in my system programatically. The code must be developed using vc++ Is there any API for this ?

Where in the regist

5条回答
  •  余生分开走
    2020-12-18 03:51

    Read the default value of HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet and optionally check HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\XXX\shell\open\command where XXX is that value picked up from the first key.

提交回复
热议问题