get_process_affinity_mask


bool standard get_process_affinity_mask(handle process,
                                        ulong* process_affinity_mask,
                                        ulong* system_affinity_mask);

This function obtains the process and system affinity masks.

Parameters

handle process

The handle of the process whose affinity mask is being queried. This handle must have the access right process_access::get_information.

ulong* process_affinity_mask

A pointer to a variable that is updated to contain the process affinity mask.

ulong* system_affinity_mask

A pointer to a variable that is updated to contain the system affinity mask.

Return

bool

true The function succeeded.
false The call failed.

Notes

A process affinity mask is a bit vector in which each bit represents a processor that a process is allowed to run on. A system affinity mask is a bit vector in which each bit represents a processor that is configured into a system.

A process affinity mask is a subset of the system affinity mask. A process is only allowed to run on the processors configured into a system.