Hi,
The code below for file with no-extension brings up a dialog shown below listing applications that can be used to open the file. This behavior is seen only from Windows-8. For platforms less than windows 8, you get ERROR_NO_ASSOCATION error. And the applications listed in the dialog are taken from HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\OpenWithList. Is there anyway to suppress this dialog and get a behavior similar to old platforms?
-Karthik
SHELLEXECUTEINFO shinfo; unsigned long mask = SEE_MASK_FLAG_NO_UI; memset(&shinfo,0,sizeof(shinfo)); shinfo.cbSize = sizeof(shinfo); shinfo.fMask = SEE_MASK_FLAG_DDEWAIT | mask; shinfo.hwnd = NULL; shinfo.lpVerb = "open"; shinfo.lpFile = prog; shinfo.lpParameters = NULL; shinfo.lpDirectory = 0; shinfo.fMask = SEE_MASK_FLAG_NO_UI; shinfo.nShow = SW_SHOWDEFAULT; rc = ShellExecuteEx(&shinfo);
Karthik