XPackageEnumeratePackages
Finds packages that are already installed, or being installed, and are related to the calling process.Syntax
Parameters
kind _In_Type: XPackageKind The type of installation packages to be enumerated. scope _In_
Type: XPackageEnumerationScope The scope of the installation packages. context _In_opt_
Type: void* Context to be passed to the callback specified in the callback parameter. callback _In_
Type: XPackageEnumerationCallback* A callback to be called on completion.
Return value
Type: HRESULT HRESULT success or error code.Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
The output of the API, when called with value XPackageKind::Content depending on the XPackageEnumerationScope value will be:
Example:
Requirements
Header: XPackage.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
- Intelligent Delivery: language specifiers
- GDK downloadable content (DLC) packages
- Time-sensitive threads
- Checking for updates
- Manage and license downloadable content (DLC)
See also
XPackageFranchise Game Hubs
How to create and use Downloadable Content Packages (DLC) for PC and XBOX One
