#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* Variable-length input for ProcessAssignCpuPartitions.
*
* Flags may contain only PROCESS_ASSIGN_CPU_PARTITIONS_REPLACE, which removes
* existing CPU-partition assignments before adding the supplied partitions.
* CpuPartitionCount must be in the range 1 through 2048.
* On x64, the buffer has an 8-byte header followed by CpuPartitionCount handles;
* its length must be a multiple of 8 and at least 16 bytes.
*/
typedef struct _PROCESS_ASSIGN_CPU_PARTITIONS_INFORMATION
{
ULONG Flags; // PROCESS_ASSIGN_CPU_PARTITIONS_*
ULONG CpuPartitionCount;
_Field_size_(CpuPartitionCount) HANDLE CpuPartitionHandles[ANYSIZE_ARRAY];
} PROCESS_ASSIGN_CPU_PARTITIONS_INFORMATION, *PPROCESS_ASSIGN_CPU_PARTITIONS_INFORMATION;
View code on GitHubNo description available.