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

# XtfUnregisterPackage

> XtfUnregisterPackage

# XtfUnregisterPackage

Cancela o registro de um pacote implantado na unidade de rascunho do título.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
HRESULT XtfUnregisterPackage(
         LPCWSTR address,
         LPCWSTR packageFullName
)  
```

<a id="parametersSection" />

### Parâmetros

*address*\
Tipo: LPCWSTR

\[in] O endereço do console.

*packageFullName*\
Tipo: LPCWSTR

\[in] O nome completo do pacote cujo registro será cancelado.

<a id="retvalSection" />

### Valor de retorno

Tipo: HRESULT

Retorna `S_OK` se tiver êxito; caso contrário, retorna um código de erro HRESULT.

<a id="remarksSection" />

## Comentários

Esta função cancela o registro de um pacote implantado na unidade de rascunho do título, como um pacote implantado anteriormente pela função [XtfRegisterPackage](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m). Esta função cancela o registro e remove todos os aplicativos associados ao pacote especificado.

Para obter mais informações sobre como gerenciar aplicativos, confira [Gerenciamento de aplicativos (xbapp.exe) (tópico sob NDA)](/pt-BR/tools/tools-console/commandlinetools/xbapp).

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** xtfapi.h

**Biblioteca:** XtfApi.lib

**Plataformas com suporte:** Windows (para ferramentas de console XBOX)

## Confira também

[XtfRegisterPackage](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m)\
[Erros de transporte do XTF (tópico sob NDA)](/pt-BR/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

- [XtfRegisterPackage](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m.md)
- [XtfPullUnregisterApp](/pt-BR/reference/tools/xtf/xtfapi/functions/xtfpullunregisterapp-xtfapi-xbox-windows-m.md)
- [XPackageUnregisterPackageInstalled](/pt-BR/reference/system/xpackage/functions/xpackageunregisterpackageinstalled.md)
- [XPackageUnregisterInstallationProgressChanged](/pt-BR/reference/system/xpackage/functions/xpackageunregisterinstallationprogresschanged.md)
- [XStoreUnregisterPackageLicenseLost](/pt-BR/reference/system/xstore/functions/xstoreunregisterpackagelicenselost.md)
