Retrieves the affinity update mode of the specified process.
Syntax
BOOL WINAPI QueryProcessAffinityUpdateMode(
__in HANDLE ProcessHandle,
__out_opt DWORD lpdwFlags
);
Parameters
- ProcessHandle [in]
-
A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see
Process Security and Access Rights.
- lpdwFlags [out, optional]
-
The affinity update mode. This parameter can be one of the following values.
| Value | Meaning |
- 0
| Dynamic update of the process affinity by the system is disabled.
|
- PROCESS_AFFINITY_ENABLE_AUTO_UPDATE
- 0x00000001UL
| Dynamic update of the process affinity by the system is enabled.
|
Return Value
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.
Remarks
To compile an application that calls this function, define _WIN32_WINNT as 0x0600 or later. For more information, see Using the Windows Headers.
Requirements
| Minimum supported client | Windows Vista with SP1 |
| Minimum supported server | Windows Server 2008 |
| Header | Winbase.h (include Windows.h) |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |
See Also
- SetProcessAffinityUpdateMode
Send comments about this topic to Microsoft
Build date: 11/19/2009