Hello,

I am trying to use KeSetTargetProcessorDpc but do not know how to get the
processor number for each processor in a system. Can I used
KeQueryActiveProcessors and determine the processor number from the bit
number being set in KAFFINITY returned from the KeQueryActiveProcessors
call?

Much appreciated.
-HT

Re: Determine Processor Numbers by Don

Don
Fri Sep 05 12:26:55 CDT 2003

The processors are always numbered from zero, you can determine how many
processors by using KeNumberProcessors (note the definition of this changed
from 2000 to XP see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndevice/ht
ml/keynumproc.asp).

Also be aware, that with hyperthreading a system with two chips can have
four
processors numbered 0 (chip 0) 1 (chip 1) 2 (chip 0) 3 (chip 1) so be
careful
on your planning.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting

"AngelNap1" <hieutrungtran@hotmail.com> wrote in message
news:bjafi0$mvi$1@news01.intel.com...
> Hello,
>
> I am trying to use KeSetTargetProcessorDpc but do not know how to get the
> processor number for each processor in a system. Can I used
> KeQueryActiveProcessors and determine the processor number from the bit
> number being set in KAFFINITY returned from the KeQueryActiveProcessors
> call?
>
> Much appreciated.
> -HT
>
>