Debugging Tools for Windows

SetThreadForOperation

The SetThreadForOperation function sets the thread to use for the next StackTrace call.

VOID 
  SetThreadForOperation (
    ULONG_PTR * Thread
    );

Parameters

Thread
Points to a thread object to be used for the next stack trace.

Return Value

None

Comments

If you are writing 64-bit code, you should use SetThreadForOperation64 instead. See 32-Bit Pointers and 64-Bit Pointers for details.

Requirements

Headers: Defined in wdbgexts.h. If you are writing a WdbgExts extension, include wdbgexts.h. If you are writing a DbgEng extension that calls this function, include wdbgexts.h before dbgeng.h (see Writing DbgEng Extension Code for details).

Build machine: CAPEBUILD