Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The TerminateCurrentProcess method attempts to terminate the current process.
Syntax
HRESULT TerminateCurrentProcess();
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
Only live user-modeprocesses are terminated by this method. For other targets, the target is detached from the debugger engine without terminating.
For more information about creating and attaching to live user-mode targets, see Live User-Mode Targets.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |