PWINDBG_SET_THREAD_CONTEXT_ROUTINE callback function (wdbgexts.h)
The PWINDBG_SET_THREAD_CONTEXT_ROUTINE (SetContext) function is similar to the Win32 SetThreadContext routine. It sets the context of the process being debugged.
Syntax
PWINDBG_SET_THREAD_CONTEXT_ROUTINE PwindbgSetThreadContextRoutine;
ULONG PwindbgSetThreadContextRoutine(
ULONG Processor,
[out] PCONTEXT lpContext,
[in] ULONG cbSizeOfContext
)
{...}
Parameters
Processor
The processor.
[out] lpContext
Points to the address of a context structure that contains the context to be set for the process being debugged. The context structure is highly machine-specific.
[in] cbSizeOfContext
Specifies the size of the context structure.
Return value
If the routine succeeds, the return value is TRUE; otherwise, it is FALSE.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | wdbgexts.h (include Wdbgexts.h, Dbgeng.h) |