> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XPackageFeatureEnumerationCallback

> XPackageFeatureEnumerationCallback

The callback used by [XPackageEnumerateFeatures](https://docs.xbox.com/reference/system/xpackage/functions/xpackageenumeratefeatures.md) to enumerate each
feature.

## Syntax

```cpp theme={null}
bool XPackageFeatureEnumerationCallback(  
         void* context,  
         const XPackageFeature* feature  
)  
```

### Parameters

*context*   \_In\_\
Type: void\*

The context passed to [XPackageEnumerateFeatures](https://docs.xbox.com/reference/system/xpackage/functions/xpackageenumeratefeatures.md) when enumeration of
the features was initiated.

*feature*   \_In\_\
Type: [XPackageFeature\*](https://docs.xbox.com/reference/system/xpackage/structs/xpackagefeature.md)

Pointer to an [XPackageFeature](https://docs.xbox.com/reference/system/xpackage/structs/xpackagefeature.md) structure describing the feature.

### Return value

Type: bool

Return true to continue enumerating packages, or false to stop the enumeration.

## Remarks

This callback function enumerates the features defined in the package's layout.xml. A prominent
feature defined in the package's layout file is the `displayName`. The `displayName` 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](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging.md).

## Requirements

**Header:** XPackage.h

**Supported Platforms**: Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XPackageEnumerateFeatures](https://docs.xbox.com/reference/system/xpackage/functions/xpackageenumeratefeatures.md)\
[XPackageFeature](https://docs.xbox.com/reference/system/xpackage/structs/xpackagefeature.md)\
[XPackage](https://docs.xbox.com/reference/system/xpackage/xpackage_members.md)


## Related topics

- [XPackageEnumerateFeatures](https://docs.xbox.com/reference/system/xpackage/functions/xpackageenumeratefeatures.md)
- [XPackage (API contents)](https://docs.xbox.com/reference/system/xpackage/xpackage_members.md)
- [XPackageEnumerationCallback](https://docs.xbox.com/reference/system/xpackage/functions/xpackageenumerationcallback.md)
- [XPackageEnumeratePackages](https://docs.xbox.com/reference/system/xpackage/functions/xpackageenumeratepackages.md)
- [XPackageChunkAvailabilityCallback](https://docs.xbox.com/reference/system/xpackage/functions/xpackagechunkavailabilitycallback.md)
