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

# xcurl_global_resume

> xcurl_global_resume

# xcurl\_global\_resume

重置 XCurl 的内部状态，以允许在游戏恢复时进行 HTTP 请求。

## 语法

```cpp theme={null}
void xcurl_global_resume(
)
```

### 参数

无。

### 返回值

无。

## 备注

> [!WARNING]
>
> 自 2021 年 4 月的 GDK 起，挂起和恢复现已由 XCurl 在内部自动处理。仍然可以安全地调用此函数，但它已成为空操作。以下备注仅适用于 2021 年 4 月 GDK 之前的 GDK 版本。

在你通过调用 [xcurl\_global\_suspend](https://docs.xbox.com/zh-CN/reference/networking/xcurl/functions/xcurl_global_suspend.md) 挂起发送 HTTP 请求之后使用此函数。

当游戏恢复时，调用此函数以重置 XCurl 并启用发送 HTTP 请求。

正如 WinHttp 一样，你必须在收到挂起事件时清理网络和 HTTP 句柄。

## 要求

**头文件：** XCurl.h

**库：** xcurl.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XCurl 概述](https://docs.xbox.com/zh-CN/build/console-features/networking/web-requests/intro-xcurl.md)\
[HTTP 和 Web 套接字](https://docs.xbox.com/zh-CN/build/console-features/networking/web-requests/http-networking.md)\
[curl](https://curl.se/)\
[xcurl\_global\_suspend](https://docs.xbox.com/zh-CN/reference/networking/xcurl/functions/xcurl_global_suspend.md)


## Related topics

- [xcurl_global_suspend](https://docs.xbox.com/zh-CN/reference/networking/xcurl/functions/xcurl_global_suspend.md)
- [xcurl_global_init_mem](https://docs.xbox.com/zh-CN/reference/networking/xcurl/functions/xcurl_global_init_mem.md)
- [xCurl 概述](https://docs.xbox.com/zh-CN/build/console-features/networking/web-requests/intro-xcurl.md)
- [Resume](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/resume-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [WdResumeRemoteGame](https://docs.xbox.com/zh-CN/reference/remoting/functions/wdresumeremotegame.md)
