IDebugSystemObjects4::GetCurrentThreadDataOffset method (dbgeng.h)
The GetCurrentThreadDataOffset method returns the location of the system data structure for the current thread.
Syntax
HRESULT GetCurrentThreadDataOffset(
[out] PULONG64 Offset
);
Parameters
[out] Offset
Receives the location of the system data structure for the current thread.
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
In user-mode debugging, the location returned is of the thread environment block (TEB) for the current thread. This is the same location returned by GetCurrentThreadTeb.
In kernel-mode debugging, the location returned is of the KTHREAD structure of the system thread that was executing on the processor represented by the current thread when the last event occurred.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for