Debugging Tools for Windows

ReadTypedControlSpace32

The ReadTypedControlSpace32 macro is a thin wrapper around the ReadControlSpace64 function. It is provided as a convenience for reading processor-specific control space into a structure.

#define ReadTypedControlSpace32( _Proc_Addr_Buf ) \
    ReadControlSpace64( (USHORT)(_Proc), (ULONG)(_Addr), (PVOID)&(_Buf), (ULONG)sizeof(_Buf) )

Parameters

_Proc
Specifies the number of the processor whose control space is to be read.
_Addr
Specifies the address of the control space.
_Buf
Specifies the object into which the control space data is read.

Comments

The parameters provided to this macro are the same as those provided to the ReadControlSpace64 function except that instead of providing a pointer to a structure and its size, the structure can be provided directly.

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 macro, include wdbgexts.h before dbgeng.h (see Writing DbgEng Extension Code for details).

See Also

ReadControlSpace64, ReadTypedControlSpace64

Build machine: CAPEBUILD