RT...
谢谢

解决方案 »

  1.   


    BOOL WINAPI TerminateProcess(
      __in  HANDLE hProcess,
      __in  UINT uExitCode
    );ParametershProcess [in]    A handle to the process to be terminated.    The handle must have the PROCESS_TERMINATE access right. For more information, see Process Security and Access Rights.
    uExitCode [in]    The exit code to be used by the process and threads terminated as a result of this call. Use the GetExitCodeProcess function to retrieve a process's exit value. Use the GetExitCodeThread function to retrieve a thread's exit value.Return ValueIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError.
      

  2.   

    BOOL WINAPI TerminateProcess( 进程句柄, 退出码 );