I am using WIN API method GetProcessAffinityMask to retrieve process and the system affinity mask for the system. The method executes without any error but the lpProcessAffinityMask and lpSystemAffinityMask have value -1 which is wrong.
My Machine is AMD Opteron 6174 4 Physical, and 12 core each so in total system have 48 cores. My OS is Windows Web Server 2008 R2 64 bit