Debugging Tools for Windows |
The ReadProcessorSystemData method returns data about the specified processor.
HRESULT
IDebugDataSpaces::ReadProcessorSystemData(
IN ULONG Processor,
IN ULONG Index,
OUT PVOID Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG DataSize
);
Value | Description |
---|---|
DEBUG_DATA_KPCR_OFFSET | Returns the virtual address of the processor's Processor Control Region (PCR). In this case, the argument Buffer can be considered to have type PULONG64. |
DEBUG_DATA_KPRCB_OFFSET | Returns the virtual address of the processor's Processor Control Block (PRCB). In this case, the argument Buffer can be considered to have type PULONG64. |
DEBUG_DATA_KTHREAD_OFFSET | Returns the virtual address of the KTHREAD structure for the system thread running on the processor. In this case, the argument Buffer can be considered to have type PULONG64. |
DEBUG_DATA_BASE_TRANSLATION_VIRTUAL_OFFSET | Returns the virtual address of the base of the paging information owned by the operating system or the processor. The address and the content at the address are processor- and operating-system-dependent. In this case, the argument Buffer can be considered to have type PULONG64. |
DEBUG_DATA_PROCESSOR_IDENTIFICATION | Returns a description of the processor. In this case, the argument Buffer can be considered to have type PDEBUG_PROCESSOR_IDENTIFICATION_ALL . |
DEBUG_DATA_PROCESSOR_SPEED | Returns the speed of the processor in MHz. This may not work in a particular session. In this case, the argument Buffer can be considered to have type PULONG. |
This method can also return error values. See Return Values for more details.
ReadProcessorSystemData is available in all versions of IDebugDataSpaces.
This method is only available in kernel-mode debugging.
For information about the PCR, PRCB, and KTHREAD structures, as well as information about paging tables, see Microsoft Windows Internals by David Solomon and Mark Russinovich.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.