MrmCreateResourceIndexerFromPreviousPriData function
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Creates a resource indexer from PRI data created by a previous call to MrmCreateResourceFileInMemory. For more info, and scenario-based walkthroughs of how to use these APIs, see Package resource indexing (PRI) APIs and custom build systems.
Syntax
HRESULT HRESULT MrmCreateResourceIndexerFromPreviousPriData (
_In_ PCWSTR projectRoot,
_In_ MrmPlatformVersion platformVersion,
_In_opt_ PCWSTR defaultQualifiers,
_In_ BYTE *priData,
_In_ ULONG priSize,
_Inout_ MrmResourceIndexerHandle *indexer
);
Parameters
-
projectRoot [in]
-
Type: PCWSTR
The project root of the UWP app for which you will be generating PRI files. In other words, the path to that app's resource files. You specify this so that you can then specify paths relative to that root in subsequent API calls to the same resource indexer.
-
platformVersion [in]
-
Type: MrmPlatformVersion
The target platform version for the resource indexer.
-
defaultQualifiers [in, optional]
-
Type: PCWSTR
A list of default resource qualifiers. For example, L"language-en-US_scale-100_contrast-standard"
-
priData [in]
-
Type: BYTE*
A pointer to PRI data created by a previous call to MrmCreateResourceFileInMemory. Don't free priData until after you've finished using the resource indexer created by this function.
-
priSize [in]
-
Type: ULONG
The size of the data pointed to by priData.
-
indexer [in, out]
-
Type: MrmResourceIndexerHandle*
A pointer to a resource indexer handle.
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.
Remarks
Don't free priData until after you've finished using the resource indexer created by this function.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 10, version 1803 [desktop apps only] |
Minimum supported server |
Windows Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for