MrmLoadStringOrEmbeddedResource function (mrm.h)

Loads a resource of any MrmType.

Syntax

HRESULT MrmLoadStringOrEmbeddedResource(
  MrmManagerHandle resourceManager,
  MrmContextHandle resourceContext,
  MrmMapHandle     resourceMap,
  PCWSTR           resourceId,
  MrmType          *resourceType,
  PWSTR            *resourceString,
  MrmResourceData  *data
);

Parameters

resourceManager

The ResourceManager.

resourceContext

The ResourceContext. Uses the default context if null.

resourceMap

The ResourceMap. Uses root if null.

resourceId

The name of the resource to load.

resourceType

The MrmType of the resource to be loaded.

resourceString

Contains the resource string if the call was successful and resourceType was either MrmType.String or MrmType.Path.

Resource data must be freed by calling MrmFreeResource.

data

Contains the resource data if the call was successful and resourceType was MrmType.Embedded.

Resource data must be freed by calling MrmFreeResource.

Return value

HRESULT that indicates the result of the operation.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 0.5 or later)
Header mrm.h

See also