###User Defined Function###
_WinAPI_SetProcessAffinityMask

###Description###
Sets a processor affinity mask for the threads of a specified process

###Syntax###
#include <WinAPI.au3>
_WinAPI_SetProcessAffinityMask ( $hProcess, $iMask )


###Parameters###
@@ParamTable@@
$hProcess
	A handle to the process whose affinity mask the function sets
$iMask
	Affinity mask
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	True
Failure:	False, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information
@@End@@


###Remarks###
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.


###Related###


###See Also###
@@MsdnLink@@ SetProcessAffinityMask
