共用方式為


GetKdContext 巨集 (wdbgexts.h)

GetKdContext 函式會傳回處理器總數和結構中目前處理器的數目,ppi 指向 。

語法

void GetKdContext(
   ppi
);

參數

ppi

指向下列結構:

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

傳回值

沒有

言論

返回

結構中的處理器總數。

要求

要求 價值
目標平臺 桌面
標頭 wdbgexts.h (include Wdbgexts.h, Dbgeng.h)