|Debugging Tools for Windows|
The GetInstructionOffset method returns the location of the current thread's current instruction.
OUT PULONG64 Offset
This list does not contain all the errors that might occur. For a list of possible errors, see HRESULT Values.
GetInstructionOffset is available in all versions of IDebugRegisters.
The meaning of the value returned by this method is architecture-dependent. In particular, for an Itanium processor, the virtual address returned can indicate an address within a bundle.
The method GetInstructionOffset2 performs the same task as this method but also allows the register source to be specified.
For an overview of the IDebugRegisters interface and other register-related methods, see Registers.
Headers: Defined in DbgEng.h. Include DbgEng.h.