MEMORY_PRIORITY_INFORMATION structure (processthreadsapi.h)

Specifies the memory priority for a thread or process. This structure is used by the GetProcessInformation, SetProcessInformation, GetThreadInformation, and SetThreadInformation functions.

Syntax

typedef struct _MEMORY_PRIORITY_INFORMATION {
  ULONG MemoryPriority;
} MEMORY_PRIORITY_INFORMATION, *PMEMORY_PRIORITY_INFORMATION;

Members

MemoryPriority

The memory priority for the thread or process. This member can be one of the following values.

Value Meaning
MEMORY_PRIORITY_VERY_LOW
1
Very low memory priority.
MEMORY_PRIORITY_LOW
2
Low memory priority.
MEMORY_PRIORITY_MEDIUM
3
Medium memory priority.
MEMORY_PRIORITY_BELOW_NORMAL
4
Below normal memory priority.
MEMORY_PRIORITY_NORMAL
5
Normal memory priority. This is the default priority for all threads and processes on the system.

Remarks

The memory priority of a thread or process serves as a hint to the memory manager when it trims pages from the working set. Other factors being equal, pages with lower memory priority are trimmed before pages with higher memory priority. For more information, see Working Set.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header processthreadsapi.h (include Windows.h)

See also

GetProcessInformation

GetThreadInformation

SetProcessInformation

SetThreadInformation