Windows编程:ShellExecuteEx与IShellExecuteHook的深度解析
1. ShellExecuteEx函数概述
在Shell 4.0版本中引入了新函数 ShellExecuteEx() ,它拥有简洁的原型,这是许多Shell函数的典型特征。该函数支持众多标志,并且通过提供对进程同步和PIDL(指针式项标识符列表)的支持,扩展了 ShellExecute() 的功能。 ShellExecuteEx() 明显取代了 ShellExecute() ,其声明位于 shellapi.h 头文件中:
BOOL ShellExecuteEx(LPSHELLEXECUTEINFO lpExecInfo);
SHELLEXECUTEINFO 结构体的布局如下:
typedef struct _SHELLEXECUTEINFO
{
DWORD cbSize;
ULONG fMask;
HWND hwnd;
LPCTSTR lpVerb;
LPCTSTR lpFile;
LPCTSTR lpParameters;
LPCTSTR lpDirectory;
int nShow;
HINSTANCE hInstApp;
// Optional members
LPVOID lpIDList;
超级会员免费看
订阅专栏 解锁全文


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



