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

# WdResumeRemoteGame

> WdResumeRemoteGame

Resumes the last game launched in suspended mode with [WdLaunchRemoteGame](https://docs.xbox.com/reference/remoting/functions/wdlaunchremotegame.md) on a remote device.

## Syntax

```cpp theme={null}
HRESULT WdResumeRemoteGame(  
         _In_z_ const char* remoteDevice  
);  
```

### Parameters

`_In_z_ remoteDevice`\
Type: **const char\***

The hostname or IP address of the remote deviceto resume the game on (e.g., `"192.168.1.100"` or `"MyDevKit"`).

### Return value

Type: **HRESULT**

Returns `S_OK` if successful; otherwise, returns an error code.

#### Error codes

| Code | Value | Description | Root Cause | Troubleshooting |
| - | - | - | - | - |
| E\_GAMENOTSUSPENDED | 0x8C11400B | Specified process cannot be resumed. | Attempt to resume a process that is not in a suspended state or whose suspend context is no longer valid. | Verify the process state before resuming; Ensure no other tool has already resumed or terminated the process |
| E\_GAMENOTRUNNING | 0x8C11400C | No game process is running. | There is no game process currently executing that can be suspended or terminated | Verify processes currently running; Launch the game before exercising game-process dependent API |
| E\_CONNECTIONERROR | 0x8C114014 | Connection error. | Generic failure when establishing the network connection (transport‑level failure), unrelated to ip address validity or remote machine name resolution | Check network connectivity, firewall rules, service availability on the remote machine; Check visibility between devices, they should be able to ping each other; Retry the connection with logging enabled. |

## Remarks

Use this function to resume the last game that was launched in suspended mode via [WdLaunchRemoteGame](https://docs.xbox.com/reference/remoting/functions/wdlaunchremotegame.md) with [WdLaunchMode::Suspended](https://docs.xbox.com/reference/remoting/enums/wdlaunchmode.md). This is typically done after attaching a debugger to the suspended process.

## Requirements

| Requirement | Value |
| - | - |
| **Header** | WdRemoteIteration.h |
| **Library** | wdremoteapi.lib |
| **Supported OS** | Windows 11 and later |
| **Supported architectures** | x64, ARM64 |

## See also

* [WdLaunchRemoteGame](https://docs.xbox.com/reference/remoting/functions/wdlaunchremotegame.md)
* [WdTerminateRemoteGame](https://docs.xbox.com/reference/remoting/functions/wdterminateremotegame.md)
* [WdLaunchMode](https://docs.xbox.com/reference/remoting/enums/wdlaunchmode.md)
* [XBOX PC Remote Iteration API Error Codes](https://docs.xbox.com/reference/remoting/error-codes.md)
* [XBOX PC Remote Iteration API](https://docs.xbox.com/reference/remoting/remoteiteration_members.md)


## Related topics

- [WdTerminateRemoteGame](https://docs.xbox.com/reference/remoting/functions/wdterminateremotegame.md)
- [WdLaunchRemoteGame](https://docs.xbox.com/reference/remoting/functions/wdlaunchremotegame.md)
- [WdLaunchMode](https://docs.xbox.com/reference/remoting/enums/wdlaunchmode.md)
- [XBOX PC Remote Iteration API](https://docs.xbox.com/reference/remoting/remoteiteration_members.md)
- [XBOX PC Remote (wdRemote.exe)](https://docs.xbox.com/tools/tools-pc/commandlinetools/gr-wdRemote.md)
