#include "shellapi.h"
//////////////////////////////////////////////////////
//appended by zyy
SHELLEXECUTEINFO se;
//////////////////////////////////////////////////////
se.hwnd=hWnd;
se.lpVerb="properties";
se.lpFile="C://test.html";
se.fMask=SEE_MASK_NOCLOSEPROCESS
|SEE_MASK_INVOKEIDLIST |SEE_MASK_FLAG_NO_UI ;
se.lpParameters=NULL;
se.lpDirectory=NULL;
se.cbSize=sizeof(se);
::ShellExecuteEx(&se);
//此处是异步调用,所以上面的SHELLEXECUTEINFO se;应以静态或者全局变量为宜
//////////////////////////////////////////////////////
//appended by zyy
SHELLEXECUTEINFO se;
//////////////////////////////////////////////////////
se.hwnd=hWnd;
se.lpVerb="properties";
se.lpFile="C://test.html";
se.fMask=SEE_MASK_NOCLOSEPROCESS
|SEE_MASK_INVOKEIDLIST |SEE_MASK_FLAG_NO_UI ;
se.lpParameters=NULL;
se.lpDirectory=NULL;
se.cbSize=sizeof(se);
::ShellExecuteEx(&se);
//此处是异步调用,所以上面的SHELLEXECUTEINFO se;应以静态或者全局变量为宜
434

被折叠的 条评论
为什么被折叠?



