WindowsAppRuntime_InstallLicenses function (windowsappruntime-licensing.h)

Install licenses (if any) for a Windows App SDK runtime release. This function finds the Windows App SDK runtime's framework package, and installs the contained licenses (if any).

Note

Appropriate licenses must be installed in order for MddBootstrapInitialize to succeed.

Syntax

HRESULT WindowsAppRuntime_InstallLicenses(
  UINT32 majorMinorVersion,
  PCWSTR versionTag
) noexcept;

Parameters

majorMinorVersion

Type: UINT32

The major and minor version of the Windows App SDK framework package to use. The version is encoded as 0xMMMMNNNN, where M = Major and N = Minor (for example, version 1.2 should be encoded as 0x00010002).

versionTag

Type: PCWSTR

The version tag of the Windows App SDK framework package to use (if any). For example, "prerelease". Pass NULL (or nullptr) if none.

Return value

Type: HRESULT

If the function succeeds it returns ERROR_SUCCESS. Otherwise, the function returns an error code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 1.0 or later)
Header windowsappruntime-licensing.h