> ## 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.

# MarkAppAsProvisioned

> IXtfApplicationClient::MarkAppAsProvisioned method

Marks an app as provisioned.

## Syntax

```cpp theme={null}
public:
HRESULT MarkAppAsProvisioned(
         LPCWSTR pszPackageMoniker
)  
```

### Parameters

*pszPackageMoniker*\
Type: LPCWSTR

The package identifier of the package that contains the app to be marked as provisioned. For more information about package identifiers, see [Manage and license downloadable content (DLC)](https://docs.xbox.com/publishing/xstore-commerce/xstore-dlc.md).

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

**MarkAppAsProvisioned** is used by the [xbprovision.exe (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbprovision.md) tool to mark apps so that they are later handled properly by the [xbcleanup.exe (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbcleanup.md) tool. To maximize future compatibility, your tools should use the deployment and provisioning tools provided with the GDK, rather than call this API directly.

Need code sample

## Requirements

**Header:** xtfapplication.h

**Library:** xtfapplication.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

##### Reference

[IXtfApplicationClient Interface](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)

[XtfApplication](https://docs.xbox.com/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)


## Related topics

- [IXtfApplicationClient Interface (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)
- [Redeem Apple App Store In-App Purchases](https://docs.xbox.com/services/playfab/economy-monetization/economy-v2/marketplace/marketplace-redemption/apple.md)
- [XBOX Partner Onboarding for access and publishing](https://docs.xbox.com/home/onboarding.md)
- [Switching sandboxes properly for store operations](https://docs.xbox.com/publishing/xstore-commerce/xstore-switching-sandbox.md)
- [Marketplace Integration - Apple](https://docs.xbox.com/services/playfab/economy-monetization/economy-v2/marketplace/marketplace-integrations/apple.md)
