lpCurrentDirectory
[in] Pointer to a null-terminated string that specifies the current drive and directory for the new process. The string must be a full path that includes a drive letter. If this parameter is NULL, the new process will have the same current drive and directory as the calling process. (This feature is provided primarily for shells that need to start an application and specify its initial drive and working directory.)
简单的说就是工作目录
[in] Pointer to a null-terminated string that specifies the current drive and directory for the new process. The string must be a full path that includes a drive letter. If this parameter is NULL, the new process will have the same current drive and directory as the calling process. (This feature is provided primarily for shells that need to start an application and specify its initial drive and working directory.)
简单的说就是工作目录
如果我有一个程序如下调用createprocess("app1.exe",...,"c:\\my\\",&si,&pi),我的app1.exe与调用程序都在d:\apth下面,qpp1.exe它需要c:\my\的文件才可能运行,那么createprocess的调用可能成功吗?
这个不会错
偶就是这么用的:)