陈苏伟游泳国家队:急问:用ShellExecute向程序传递一个参数值,在这个调用程序中如何获取这个参数值?

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 21:13:05
等待中……

ShellExecute(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd);
lpParameters的地方就是传递的参数。

接收的应用程序如果是C++开发的话,有一个
int WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
其中lpCmdLine就是参数。