1 out of 2 rated this helpful - Rate this topic

DebugBreakProcess function

Applies to: desktop apps only

Causes a breakpoint exception to occur in the specified process. This allows the calling thread to signal the debugger to handle the exception.

Syntax

BOOL WINAPI DebugBreakProcess(
  __in  HANDLE Process
);

Parameters

Process [in]

A handle to the process.

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

If the process is not being debugged, the function uses the search logic of a standard exception handler. In most cases, this causes the process to terminate because of an unhandled breakpoint exception.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

Communicating with the Debugger
Debugging Functions
DebugBreak

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ