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

# WdResumeRemoteGame

> WdResumeRemoteGame

# WdResumeRemoteGame

Resumes the last game launched in suspended mode with [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame) 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](/reference/remoting/functions/wdlaunchremotegame) with [WdLaunchMode::Suspended](/reference/remoting/enums/wdlaunchmode). 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](/reference/remoting/functions/wdlaunchremotegame)
* [WdTerminateRemoteGame](/reference/remoting/functions/wdterminateremotegame)
* [WdLaunchMode](/reference/remoting/enums/wdlaunchmode)
* [XBOX PC Remote Iteration API Error Codes](/reference/remoting/error-codes)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)


## Related topics

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