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

取消注册部署到 title scratch 驱动器的包。

<a id="syntaxSection" />

## 语法

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

<a id="parametersSection" />

### 参数

*address*\
类型：LPCWSTR

\[in] 主机的地址。

*packageFullName*\
类型：LPCWSTR

\[in] 要取消注册的包的完整名称。

<a id="retvalSection" />

### 返回值

类型：HRESULT

如果成功则返回 `S_OK`；否则返回 HRESULT 错误代码。

<a id="remarksSection" />

## 备注

此函数取消注册部署到 title scratch 驱动器的包，例如之前由 [XtfRegisterPackage](/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m) 函数部署的包。此函数会取消注册并移除与指定包关联的所有应用程序。

有关管理应用程序的详细信息，请参阅[应用程序管理 (xbapp.exe) (NDA 主题)](/tools/tools-console/commandlinetools/xbapp)。

<a id="requirementsSection" />

## 要求

**头文件：** xtfapi.h

**库：** XtfApi.lib

**支持的平台：** Windows（用于 XBOX 主机工具）

## 另请参阅

[XtfRegisterPackage](/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m)\
[XTF 传输错误 (NDA 主题)](/tools/tools-console/commandlinetools/xtf-transport-errors)


## Related topics

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