GetMemoryErrorHandlingCapabilities function (memoryapi.h)

Gets the memory error handling capabilities of the system.

Syntax

BOOL GetMemoryErrorHandlingCapabilities(
  [out] PULONG Capabilities
);

Parameters

[out] 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

Requirement Value
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 onecore.lib
DLL Kernel32.dll