Ejemplo n.º 1
0
 private static extern uint GetCurrentProcessorNumberEx(
 ref _PROCESSOR_NUMBER ProcNumber);
Ejemplo n.º 2
0
        public static uint GetCurrentProcessorNumber(out ushort group)
        {
            group = 0;

            if (!CheckForGPPExEntryPoint())
            {
                return GetCurrentProcessorNumber();
            }
            else
            {
                _PROCESSOR_NUMBER pN = new _PROCESSOR_NUMBER();
                GetCurrentProcessorNumberEx(ref pN);
                group = pN.Group;
                return pN.Number;
            }
        }