GetMemoryErrorHandlingCapabilities function

Gets the memory error handling capabilities of the system.

Syntax

BOOL GetMemoryErrorHandlingCapabilities(
  PULONG Capabilities
);

Parameters

Capabilities

A PULONG that receives one or more of the following flags.

Value Meaning
MEHC_PATROL_SCRUBBER_PRESENT
1
The hardware can detect and report failed memory.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

To compile an application that calls this function, define _WIN32_WINNT as _WIN32_WINNT_WIN8 or higher. For more information, see Using the Windows Headers.

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header memoryapi.h (include Windows.h, Memoryapi.h)
Library Kernel32.lib
DLL Kernel32.dll