Debugging Tools for Windows |
The GetIndexByName method returns the index of the named register.
HRESULT
IDebugRegisters::GetIndexByName(
IN PCSTR Name,
OUT PULONG Index
);
HRESULT
IDebugRegisters2::GetIndexByNameWide(
IN PCWSTR Name,
OUT PULONG Index
);
#ifdef UNICODE
#define GetIndexByNameT GetIndexByNameWide
#else
#define GetIndexByNameT GetIndexByName
#endif
This list does not contain all the errors that might occur. For a list of possible errors, see HRESULT Values.
GetIndexByName is available in all versions of IDebugRegisters. GetIndexByNameWide is available in IDebugRegisters2 and later versions.
For an overview of the IDebugRegisters interface and other register-related methods, see Registers.
Headers: Defined in DbgEng.h. Include DbgEng.h.