Marks a memory block (that is normally included by default in error reports) to be excluded from the error report.
HRESULT WerRegisterExcludedMemoryBlock( const void *address, DWORD size );
The starting address of the memory block.
The size of the memory block, in bytes.
This function returns S_OK on success or an error code on failure, including the following error codes.
||address is NULL or size is 0.|
||WER could not allocate a large enough heap for the data|
||The number of registered entries exceeds the limit (WER_MAX_REGISTERED_ENTRIES).|
||The process state is not valid. For example, the process is in application recovery mode.|
This mechanism is intended for applications that hold large amounts of data in memory that aren't useful for root cause debugging and increase the size of the dump file unnecessarily. For example, some Xbox One games hold large amounts of texture data in memory that is included in error dumps by default.
|Minimum supported client||Windows 10, version 1703 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2016 [desktop apps | UWP apps]|