Skip to main content

XtfClosePackageInfo

Frees a package information object.

Syntax

Parameters

packageInfo
Type: XtfPackageInfo
[in] A pointer to the information object for a package.

Return value

None.

Remarks

Use this function to release the pointer to the information object for a registered package, returned by either the XtfRegisterPackage or XtfRegisterNetworkSharePackage function. The information object is used by the XtfGetAumid, XtfGetcountofAppUserModelIds, and the XtfGetPackageFullName functions to retrieve information for a package. For more information about packages, see Packaging.
You must call this function to release the pointer to an information object for a package. Otherwise, the information object is orphaned and the resources associated with it aren’t freed, causing a memory leak.

Requirements

Header: xtfapi.h Library: XtfApi.lib Supported platforms: Windows (for XBOX console tools)

See also

XTF Transport Errors (NDA topic)
Additional Xtf APIs
Last modified on August 20, 2026