Debugging Tools for Windows

GetMatchThreadId

The GetMatchThreadId method returns the engine thread ID of the thread that can trigger a breakpoint.

HRESULT
  IDebugBreakpoint::GetMatchThreadId(
    OUT PULONG  Id
    );

Parameters

Id
The engine thread ID of the thread that can trigger this breakpoint.

Return Value

GetMatchThreadId might return one of the following values:

S_OK
The method was successful.
E_NOINTERFACE
No specific thread has been set for this breakpoint. Any thread can trigger the breakpoint.

This method might also return other error values. For more information about possible return values, see Return Values.

Comments

If you have set a thread for the breakpoint, the breakpoint can be triggered only if that thread hits the breakpoint. If you have not set a thread , any thread can trigger the breakpoint and Id receives NULL.

The GetParameters method also returns the engine thread ID of the thread that can trigger the breakpoint.

For more information about breakpoint properties, see Controlling Breakpoint Flags and Parameters.

Requirements

Versions: Available in all versions of IDebugBreakpoint.

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD