_WinAPI_GetProcessAffinityMask
Obtains the affinity masks for the process and the system
#include <WinAPI.au3>
_WinAPI_GetProcessAffinityMask($hProcess)
Параметры
| $hProcess | An open handle to the process whose affinity mask is desired. |
Возвращаемое значение
| Успех: | Возвращает массив следующего формата: |
| $aMask[0] - True on success, otherwise False | |
| $aMask[1] - Process affinity mask | |
| $aMask[2] - System affinity mask | |
| Ошибка: | Устанавливает @error |
Примечания
An affinity mask is a bit mask in which each bit represents a processor on which the threads of the process are allowed to run. For example, if you pass a mask of 0x05, processors 1 and 3 are allowed to run.См. также
Искать GetProcessAffinityMask в библиотеке MSDN