PROCESS_MEMORY_EXHAUSTION_INFO structure (processthreadsapi.h)

Allows applications to configure a process to terminate if an allocation fails to commit memory. This structure is used by the PROCESS_INFORMATION_CLASS class.

Syntax

typedef struct _PROCESS_MEMORY_EXHAUSTION_INFO {
  USHORT                         Version;
  USHORT                         Reserved;
  PROCESS_MEMORY_EXHAUSTION_TYPE Type;
  ULONG_PTR                      Value;
} PROCESS_MEMORY_EXHAUSTION_INFO, *PPROCESS_MEMORY_EXHAUSTION_INFO;

Members

Version

Version should be set to PME_CURRENT_VERSION.

Reserved

Reserved.

Type

Type of failure.

Type should be set to PMETypeFailFastOnCommitFailure (this is the only type available).

Value

Used to turn the feature on or off.

Function Setting
Enable PME_FAILFAST_ON_COMMIT_FAIL_ENABLE
Disable PME_FAILFAST_ON_COMMIT_FAIL_DISABLE

Requirements

Requirement Value
Minimum supported client Windows 10, version 1511 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Header processthreadsapi.h (include Windows.h)

See also

PROCESS_INFORMATION_CLASS

PROCESS_MEMORY_EXHAUSTION_TYPE