Debugging Tools for Windows

WriteControlSpace

The WriteControlSpace function writes to the processor-specific control space of the current target.

VOID
WriteControlSpace(
    USHORT  processor,
    ULONG  address,
    PVOID  buf,
    ULONG  size
    );

Parameters

processor
Specifies the index of the processor whose control space is to be written.
address
Specifies the address of the control space.
buf
Specifies the data to be written to the control space.
size
Specifies the number of bytes to be written. This is the number of bytes in the buf buffer.

Return Value

None

Comments

This function can only be called in kernel-mode debugging.

Requirements

Headers: Defined in wdbgexts.h. If you are writing a WdbgExts extension, include wdbgexts.h. If you are writing a DbgEng extension that calls this function, include wdbgexts.h before dbgeng.h (see Writing DbgEng Extension Code for details).

See Also

ReadControlSpace, ReadControlSpace64

Build machine: CAPEBUILD