Jump to content

DBG_C_ReadReg

From EDM2
Revision as of 04:03, 3 March 2020 by Martini (talk | contribs) (Created page with "Debug Command 3 - Read Register Set Command ;Parameters *Pid= Process ID of debuggee *Tid= Thread ID of register set to read *Cmd= DBG_C_ReadReg If Tid is zero and the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Debug Command 3 - Read Register Set Command

Parameters
  • Pid= Process ID of debuggee
  • Tid= Thread ID of register set to read
  • Cmd= DBG_C_ReadReg

If Tid is zero and the debuggee is stopped, the register set comes from the active debuggee thread. If Tid is zero and the debuggee is executing, ERROR_INVALID_THREADID is returned.

Returns

The register set in the DosDebug Buffer structure is updated, including the selector information as follows:

  • Tid= Thread ID corresponding to the register set
  • MTE= Program module's MTE (Module Table Entry) handle