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

# WdResumeRemoteGame

リモート デバイス上で [WdLaunchRemoteGame](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdlaunchremotegame.md) を使用して中断モードで最後に起動されたゲームを再開します。

## 構文

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

### パラメーター

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

ゲームを再開するリモート デバイスのホスト名または IP アドレス (例: `"192.168.1.100"` または `"MyDevKit"`)。

### 戻り値

Type: **HRESULT**

成功した場合は `S_OK` を返します。それ以外の場合はエラー コードを返します。

#### エラー コード

| コード | 値 | 説明 | 根本原因 | トラブルシューティング |
| - | - | - | - | - |
| E\_GAMENOTSUSPENDED | 0x8C11400B | 指定されたプロセスは再開できません。 | 中断状態にない、または中断コンテキストがもはや有効でないプロセスを再開しようとしました。 | 再開する前にプロセスの状態を確認してください。他のツールが既にプロセスを再開または終了していないことを確認してください |
| E\_GAMENOTRUNNING | 0x8C11400C | 実行中のゲーム プロセスがありません。 | 中断または終了できるゲーム プロセスが現在実行されていません | 現在実行中のプロセスを確認してください。ゲーム プロセスに依存する API を実行する前にゲームを起動してください |
| E\_CONNECTIONERROR | 0x8C114014 | 接続エラー。 | IP アドレスの有効性やリモート マシン名の解決とは無関係の、ネットワーク接続の確立時の一般的な失敗 (トランスポート レベルの失敗) | ネットワーク接続、ファイアウォールの規則、リモート マシン上のサービスの可用性を確認してください。デバイス間の可視性を確認してください。デバイスは互いに ping できる必要があります。ログを有効にして接続を再試行してください。 |

## 解説

この関数は、[WdLaunchRemoteGame](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdlaunchremotegame.md) と [WdLaunchMode::Suspended](https://docs.xbox.com/ja-jp/reference/remoting/enums/wdlaunchmode.md) を使用して中断モードで最後に起動されたゲームを再開するために使用します。これは通常、中断されたプロセスにデバッガーをアタッチした後で行います。

## 要件

| 要件 | 値 |
| - | - |
| **ヘッダー** | WdRemoteIteration.h |
| **ライブラリ** | wdremoteapi.lib |
| **サポートされている OS** | Windows 11 以降 |
| **サポートされているアーキテクチャ** | x64、ARM64 |

## 関連項目

* [WdLaunchRemoteGame](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdlaunchremotegame.md)
* [WdTerminateRemoteGame](https://docs.xbox.com/ja-jp/reference/remoting/functions/wdterminateremotegame.md)
* [WdLaunchMode](https://docs.xbox.com/ja-jp/reference/remoting/enums/wdlaunchmode.md)
* [XBOX PC Remote Iteration API エラー コード](https://docs.xbox.com/ja-jp/reference/remoting/error-codes.md)
* [XBOX PC Remote Iteration API](https://docs.xbox.com/ja-jp/reference/remoting/remoteiteration_members.md)


## Related topics

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