MrmCreateConfigInMemory function
Creates a new, initialized PRI config file in memory (i.e. not on disk) for use with the Windows SDK MakePri tool. None of the other MRM functions work with config files.
This function performs the equivalent of the makepri createconfig
command, but in memory.
COM must be initialized (e.g. by calling CoInitializeEx) before using this function.
Syntax
HRESULT HRESULT MrmCreateConfigInMemory(
_In_ MrmPlatformVersion platformVersion,
_In_opt_ PCWSTR defaultQualifiers,
_Out_ BYTE **outputXmlData,
_Out_ ULONG *outputXmlSize
);
Parameters
-
platformVersion [in]
-
Type: MrmPlatformVersion
The platform version (targetOsVersion) to use for the generated configuration file. Most callers should just use MrmPlatformVersion_Windows10_0_0_5
-
defaultQualifiers [in, optional]
-
Type: PCWSTR
A list of default resource qualifiers. For example, "language-en-US_scale-100". For more information about qualifiers, see Qualifiers in MRM.
-
outputXmlData [out]
-
Type: BYTE**
The address of a BYTE pointer. On successful return, contains a pointer to the buffer allocated by the function that contains the generated config file. You must free the memory by calling MrmFreeMemory when you are done with it.
-
outputXmlSize [out]
-
Type: ULONG*
The address of a ULONG. On successful return, contains the size of the allocated memory buffer pointed to by outputXmlData.
Return value
Type: HRESULT
S_OK if the function succeeded, otherwise an error 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 |
|
Library |
|
DLL |
|