MrmDestroyIndexerAndMessages function

Releases resources associated with a resource indexer. Destroys the handle, frees the indexer, and deletes any messages retrieved via MrmPeekResourceIndexerMessages.

Note this does not free memory allocated via functions such as MrmCreateConfigInMemory or MrmCreateResourceFileInMemory that produce outputs; that memory must be freed by using MrmFreeMemory, as outlined in the specific API topics.

Syntax

HRESULT HRESULT MrmDestroyIndexerAndMessages(
  _In_ MrmResourceIndexerHandle indexer
);

Parameters

indexer [in]

Type: MrmResourceIndexerHandle

A handle identifying the resource indexer to destroy.

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

MrmFreeMemory

Package resource indexing (PRI) APIs and custom build systems