MFC, Get default browser using AssocQueryString


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. CString strBrowser;
  2. DWORD size = 1024;
  3. AssocQueryString(0, ASSOCSTR_EXECUTABLE, ".htm", "Open", strBrowser.GetBufferSetLength(size), &size);
  4. strBrowser.ReleaseBuffer();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.