MrmFreeMemory function

Frees memory allocated by MrmCreateConfigInMemory, MrmCreateResourceFileInMemory, MrmDumpPriFileInMemory, and MrmDumpPriDataInMemory.

To free the indexer handle, use MrmDestroyIndexerAndMessages.

Syntax

HRESULT HRESULT MrmFreeMemory(
  _In_ BYTE *data
);

Parameters

data [in]

Type: BYTE*

A pointer to memory allocated and returned by MrmCreateConfigInMemory, MrmCreateResourceFileInMemory, MrmDumpPriFileInMemory, or MrmDumpPriDataInMemory.

Return value

Type: HRESULT

S_OK if the function succeeded, otherwise some other value. Use the SUCCEEDED or FAILED macros (defined in winerror.h) to determine success or failure.

Requirements

Requirement Value
Minimum supported client
Windows 10, version 1803 [desktop apps only]
Minimum supported server
Windows Server [desktop apps only]
Header
MrmResourceIndexer.h
Library
Mrmsupport.lib
DLL
Mrmsupport.dll

See also

MrmDestroyIndexerAndMessages

Package resource indexing (PRI) APIs and custom build systems