The SetProcessAffinityMask function sets a processor affinity mask for the threads of a specified process.
A process affinity mask is a bit vector in which each bit represents the processor on which the threads of the process are allowed to run.
The value of the process affinity mask must be a proper subset of the mask values obtained by the GetProcessAffinityMask function.
BOOL SetProcessAffinityMask(
HANDLE hProcess, |
// handle to process |
DWORD dwProcessAffinityMask |
// process affinity mask |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Process affinity is inherited by any process that you start with the CreateProcess function.
CreateProcess, GetProcessAffinityMask
file: /Techref/os/win/api/win32/func/src/f80_22.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/29 19:31,
18.225.149.158:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/func/src/f80_22.htm"> SetProcessAffinityMask</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.