I have to invoke from my MFC app the properties dialog of a file.
I tought to the ShellExecute verb and tought to the verb "properties"...
but it is don't work... It seems that this verb is not supported by the
majority of file extention in the registery...
Is somone have any idee to show the shell properties dialog of a file
programatically in VC++ and MFC?
Thank
Eric
Rather then calling ShellExecut
I have to call the ShellExecuteEx like the following:
SHELLEXECUTEINFO aShExecInfo ={0};
aShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
aShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ;
aShExecInfo.hwnd = m_hWnd;
aShExecInfo.lpVerb = "properties";
aShExecInfo.lpFile = aCurrentPath;
aShExecInfo.lpParameters = "";
aShExecInfo.lpDirectory = NULL;
aShExecInfo.nShow = SW_SHOW;
aShExecInfo.hInstApp = NULL;
ShellExecuteEx(&aShExecInfo);
An it work well!
Thanks
Eric