Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.03 KB

nf-processthreadsapi-setprocessdefaultcpusets.md

File metadata and controls

74 lines (56 loc) · 2.03 KB
UID tech.root title ms.date ms.topic targetos description req.assembly req.construct-type req.ddi-compliance req.dll req.header req.idl req.include-header req.irql req.kmdf-ver req.lib req.max-support req.namespace req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.type-library req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NF:processthreadsapi.SetProcessDefaultCpuSets
processthreadsapi
SetProcessDefaultCpuSets
08/05/2022
language-reference
Windows
The SetProcessDefaultCpuSets function (processthreadsapi.h) sets the default CPU Sets assignment for threads in the specified process.
function
kernel32.dll
processthreadsapi.h
Windows 10
Windows Server 2016
apiref
DllExport
Kernel32.dll
API-MS-Win-Core-ProcessThreads-L1-1-3.dll
KernelBase.dll
SetProcessDefaultCpuSets
SetProcessDefaultCpuSets
processthreadsapi/SetProcessDefaultCpuSets
c++

-description

Sets the default CPU Sets assignment for threads in the specified process. Threads that are created, which don’t have CPU Sets explicitly set using SetThreadSelectedCpuSets, will inherit the sets specified by SetProcessDefaultCpuSets automatically.

-parameters

-param Process

Specifies the process for which to set the default CPU Sets. This handle must have the PROCESS_SET_LIMITED_INFORMATION access right. The value returned by GetCurrentProcess can also be specified here.

-param CpuSetIds

Specifies the list of CPU Set IDs to set as the process default CPU set. If this is NULL, the SetProcessDefaultCpuSets clears out any assignment.

-param CpuSetIdCount

Specifies the number of IDs in the list passed in the CpuSetIds argument. If that value is NULL, this should be 0.

-returns

This function cannot fail when passed valid parameters

-remarks

-see-also