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

# IXtfApplicationClient::MarkAppAsProvisioned method

> IXtfApplicationClient::MarkAppAsProvisioned method

# IXtfApplicationClient::MarkAppAsProvisioned method

Marks an app as provisioned.

<a id="syntaxSection" />

## Syntax

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

<a id="ID4EG" />

### 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)](/publishing/xstore-commerce/xstore-dlc).

<a id="ID4EP" />

### Return value

Type: HRESULT

HRESULT success or error code.

<a id="remarks" />

## Remarks

**MarkAppAsProvisioned** is used by the [xbprovision.exe (NDA topic)](/tools/tools-console/commandlinetools/xbprovision) tool to mark apps so that they are later handled properly by the [xbcleanup.exe (NDA topic)](/tools/tools-console/commandlinetools/xbcleanup) 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

<a id="requirements" />

## Requirements

**Header:** xtfapplication.h

**Library:** xtfapplication.lib

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

<a id="ID4ENB" />

## See also

<a id="ID4EPB" />

##### Reference

[IXtfApplicationClient Interface](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t)

[XtfApplication](/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n)


## Related topics

- [IXtfApplicationClient::SetDefaultApp](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/setdefaultapp-ixtfapplicationclient-xtfapplication-xbox-wi.md)
- [IXtfApplicationClient::Deploy](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/deploy-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::DeployEx](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/ixtfapplicationclient-deployex.md)
- [IXtfApplicationClient::DeployToTitleScratch](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/ixtfapplicationclient-deploytotitlescratch.md)
- [IXtfApplicationClient::Resume](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/resume-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
