#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The PROCESS_MEMORY_EXHAUSTION_TYPE enumeration defines the different memory exhaustion typess.
*
* \sa https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ne-processthreadsapi-process_memory_exhaustion_type
*/
//typedef enum _PROCESS_MEMORY_EXHAUSTION_TYPE
//{
// // Anytime memory management fails an allocation due to an inability to commit memory,
// // it will cause the process to trigger a Windows Error Reporting report and then terminate immediately with STATUS_COMMITMENT_LIMIT.
// // The failure cannot be caught and handled by the app.
// PMETypeFailFastOnCommitFailure,
// PMETypeMax
//} PROCESS_MEMORY_EXHAUSTION_TYPE, *PPROCESS_MEMORY_EXHAUSTION_TYPE;
/**
* The PROCESS_MEMORY_EXHAUSTION_INFO structure allows applications to configure
* termination if an allocation fails to commit memory.
* \sa https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ns-processthreadsapi-process_memory_exhaustion_info
*/
//typedef struct _PROCESS_MEMORY_EXHAUSTION_INFO
//{
// USHORT Version; // Version should be set to PME_CURRENT_VERSION.
// USHORT Reserved; // Reserved
// PROCESS_MEMORY_EXHAUSTION_TYPE Type; // Type of failure.
// ULONG_PTR Value; // Used to turn the feature on or off.
//} PROCESS_MEMORY_EXHAUSTION_INFO, *PPROCESS_MEMORY_EXHAUSTION_INFO;
// rev PROCESS_FAULT_INFORMATION->FaultFlags
#define PROCESS_FAULT_FLAG_MARK_CRASHED 0x00000001 // sets Flags3.Crashed (bit 2) via atomic OR
View code on GitHubNo description available.