I need to open an html file on a disk with parameters from my C ++ program in the default browser.
For example: c: \ index.html? id = 15.
I use ShellExecute to open all urls or files, but this one does not work, it breaks parameters from local files.
ShellExecute(0, NULL, "file:///c:\index.html?id=15", NULL, NULL, SW_SHOWNORMAL);
It works fine from the command line, i.e. iexplore file: /// c: \ index.html? id = 15
How can I open this page?
Roman source share