Jump to content

DBG_C_WriteReg

From EDM2
Revision as of 04:09, 3 March 2020 by Martini (talk | contribs) (Created page with "Debug Command 6 - Write Register Set Command ;Parameters *Pid= Process ID of debuggee *Tid= Nonzero Thread ID of register set to write *Cmd= DBG_C_WriteReg The registe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Debug Command 6 - Write Register Set Command

Parameters
  • Pid= Process ID of debuggee
  • Tid= Nonzero Thread ID of register set to write
  • Cmd= DBG_C_WriteReg

The register set in the DosDebug Buffer should contain the desired values.

Returns

TidThread ID corresponding to the register set.

All registers are updated to the stored values. The access rights, limits, and Eflags are also updated to match the current values.

An error is returned if the selectors are not accessible by user space code, or are not valid memory segments.

Restrictions

Reserved system or processor flags bits are not modified via this method, but are masked to their correct values. The selector access rights and limits cannot be modified. The flags, access rights, and limits in the DosDebug Buffer structure are updated to the actual values.