Debugging Tools for Windows

ReadControlSpace

The ReadControlSpace function reads the processor-specific control space into the array pointed to by buf.

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

Parameters

processor
Specifies the number of the processor whose control space is to be read.
address
Specifies the address of the control space.
buf
Specifies the address of an array of bytes to hold the control space data.
size
Specifies the number of bytes in the array pointed to by buf.

Return Value

None

Comments

If you are writing 64-bit code, you should use ReadControlSpace64 instead. See 32-Bit Pointers and 64-Bit Pointers for details.

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).

Build machine: CAPEBUILD