父程序用createprocess调用子程序,并保留子程序的HANDLE hProcess 然后定期调用GetExitCodeProcess(hProcess, pdwExitCode) 当当子程序出错显示系统的错误消息框时,pdwExitCode是STILL_ACTIVE还是其它的状态呢?

解决方案 »

  1.   

    其实之前就是没弄到程序必然死掉的程序刚类似楼上说的,写了一段
    HANDLE hFile;
    LPCVOID lpBuffer;
    DWORD nNumberOfBytesToWrite;
    LPDWORD lpNumberOfBytesWritten;
        LPOVERLAPPED lpOverlapped;
    hFile = (HANDLE)0x70033021;
    WriteFile(     hFile,
     lpBuffer,
     nNumberOfBytesToWrite,
     lpNumberOfBytesWritten,
         lpOverlapped);程序挂掉,试了一下,结果证子程序出错显示系统的错误消息框时。是STILL_ACTIVE