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.) 
简单的说就是工作目录

解决方案 »

  1.   

    大哥,msdn上的我也看了,但是这个工作目录究竟是什么意思啦?
    如果我有一个程序如下调用createprocess("app1.exe",...,"c:\\my\\",&si,&pi),我的app1.exe与调用程序都在d:\apth下面,qpp1.exe它需要c:\my\的文件才可能运行,那么createprocess的调用可能成功吗?
      

  2.   

    可就是运行不了啊,app1程序提示“no ini file”就退出了
    这个不会错
      

  3.   

    既然不知道,直接用NULL就行了!
    偶就是这么用的:)