UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Sat May 17, 2008 10:22 pm Post subject: Number of processors |
|
|
| Code: | KAFFINITY NumberOfProcessors = KeQueryActiveProcessors();
for(int n=0; NumberOfProcessors; NumberOfProcessors >>= 1)
{
if (NumberOfProcessors & 1)
n++;
}
DbgPrint("[!] Number of processors = %d \n",n); |
Gives me 'KAFFINITY' : illegal use of this type as an expression. What's the problem, I think it a good way of knowing the count, but is there a better way?
_________________
|
|