GetKdContext - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdbgexts.h

void GetKdContext(
  ppi
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdbgexts-getkdcontext)

GetKdContext macro

Description

The GetKdContext function returns the total number of processors and the number of the current processor in the structure ppi points to.

Parameters

ppi

Points to the following structure:

typedef struct _PROCESSORINFO {
  USHORT  Processor;           // current processor
  USHORT  NumberProcessors;    // total number of processors
} PROCESSORINFO, *PPROCESSORINFO;

Remarks

Returns

The total number of processors in the structure.