-
shellexecuteex
i am using ShellExecuteEx to call the properties wizard of a zip file from a floatmenu but the program always reports errors
when i change the file into a txt file or a bin folder, it works
PHP Code:
switch(LOWORD(pMsg->wParam))
{
case IDC_FMENUPROPERTY:
const TCHAR* verb=_T("properties");
if(-1!=index)
{
SHELLEXECUTEINFO shellExInfo;
shellExInfo.cbSize=sizeof(SHELLEXECUTEINFO);
shellExInfo.fMask=NULL;
shellExInfo.hwnd=NULL;
CString fn=_T("keinnie05.zip")
shellExInfo.lpVerb=verb;
shellExInfo.lpFile=fn;
shellExInfo.hIcon=NULL;
shellExInfo.lpParameters=NULL;
shellExInfo.lpDirectory=NULL;
shellExInfo.lpIDList=NULL;
shellExInfo.nShow=SW_SHOWNORMAL;
ShellExecuteEx(&shellExInfo);
}
}
Thanks for any help
-
Re: shellexecuteex
So if you want to display file or folder's properties I don't unterstand why you declare const TCHAR verb variable. You shoud use
Code:
ShellExInfo.lpVerb = properties;