术语 | debugsetprocesskillonexit |
释义 | DebugSetProcessKillOnExit 语法: C++ BOOL WINAPI DebugSetProcessKillOnExit( __in BOOL KillOnExit ); DebugSetProcessKillOnExit功能 设置要执行的操作时,调用线程退出。 参数 KillOnExit [in] 如果此参数为TRUE,线程终止所有附加在退出过程(注意,这是默认值)。否则,线程分离的所有进程正就退出调试。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 调用线程必须建立至少一个调试,然后再调用这个函数连接使用CreateProcess或DebugActiveProcess功能。 DebugSetProcessKillOnExit,影响所有当前和未来的连接到调用线程debuggees。一个线程可以调用这个函数多次改变所需的行动。 要求: 最低支持client-Windows XP 最低支持serverWindows服务器2003 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 调试功能 DebugActiveProcessStop 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==DebugSetProcessKillOnExit Function Sets the action to be performed when the calling thread exits. Syntax C++ BOOL WINAPI DebugSetProcessKillOnExit( __in BOOL KillOnExit ); Parameters KillOnExit [in] If this parameter is TRUE, the thread terminates all attached processes on exit (note that this is the default). Otherwise, the thread detaches from all processes being debugged on exit. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks The calling thread must have established at least one debugging connection using the CreateProcess or DebugActiveProcess function before calling this function. DebugSetProcessKillOnExit affects all current and future debuggees connected to the calling thread. A thread can call this function multiple times to change the action as needed. Requirements Minimum supported clientWindows XP Minimum supported serverWindows Server 2003 HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also Debugging Functions DebugActiveProcessStop Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms679307(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。