Hi Guys
i have 4 intel processor on my system but when i called KeGetCurrentProcessorNumber() it returns me 0xff . so is it current value? i think value range should be (0-3).
my os is window xp sp3.
Hi Guys
i have 4 intel processor on my system but when i called KeGetCurrentProcessorNumber() it returns me 0xff . so is it current value? i think value range should be (0-3).
my os is window xp sp3.
xxxxx@gmail.com wrote:
i have 4 intel processor on my system but when i called KeGetCurrentProcessorNumber() it returns me 0xff . so is it current value? i think value range should be (0-3).
The range will be 0-3. Where did you see the 0xff? How did you view
the value? Show us your code.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
DbgPrint(“CurrentProcessorNumber %lx\n”, KeGetCurrentProcessorNumber());
CCHAR CurrentCPU ;
CurrentCPU = KeGetCurrentProcessorNumber();
Is that the actual code, as in you copied from your source file and pasted it here?
The reason I ask is that the last two lines have nothing to do with the display problem as displayed, are also incorrect, and I don’t think would compile without at least a warning and probably an error.
ULONG KeGetCurrentProcessorNumber(VOID)
So:
ULONG CurrentCPU = KeGetCurrentProcessorNumber();
mm
ya it’s actual code.
and i have also done as said
ULONG CurrentCPU = KeGetCurrentProcessorNumber();
but no luck still 0xff value.