XPackageEnumerateFeatures
Enumerates features defined in the package's layout file.
Syntax
HRESULT XPackageEnumerateFeatures(
const char* packageIdentifier,
void* context,
XPackageFeatureEnumerationCallback* callback
)
Parameters
packageIdentifier _In_z_
Type: char*
The package to enumerate the features of the layout file. For more information about package identifiers, see [Manage and license downloadable content (DLC)] (xstore-manage-and-license-optional-packages.md).
context _In_opt_
Type: void*
Context to be passed to the callback specified in the callback parameter.
callback _In_
Type: XPackageFeatureEnumerationCallback*
Caller defined callback.
Remarks
This function enumerates the features defined in the package's layout.xml. Most importantly, this
includes the displayName
for that feature which it is shown in the Shell manage page for the
game. For information about the packaging technology used with Xbox One titles, see Overview of
Packaging.
Return value
Type: HRESULT
HRESULT success or error code.
Requirements
Header: XPackage.h
Library: xgameruntime.lib
Supported Platforms: Windows, Xbox One family consoles and Xbox Series consoles