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

# WdTerminateRemoteGame

> WdTerminateRemoteGame

# WdTerminateRemoteGame

원격 기기에서 [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame)을 사용하여 마지막으로 실행된 게임을 종료합니다.

## 구문

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

### 매개 변수

`_In_z_ remoteDevice`\
형식: **const char\***

원격 기기의 호스트 이름 또는 IP 주소입니다(예: `"192.168.1.100"` 또는 `"MyDevKit"`).

### 반환 값

형식: **HRESULT**

성공 시 `S_OK`를 반환하고, 그렇지 않으면 오류 코드를 반환합니다.

#### 오류 코드

| 코드                 | 값          | 설명                   | 근본 원인                                                                  | 문제 해결                                                                                                   |
| ------------------ | ---------- | -------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| E\_GAMENOTRUNNING  | 0x8C11400C | 실행 중인 게임 프로세스가 없습니다. | 일시 중단하거나 종료할 수 있는 실행 중인 게임 프로세스가 없습니다.                                 | 현재 실행 중인 프로세스를 확인합니다. 게임 프로세스에 의존하는 API를 실행하기 전에 게임을 실행합니다.                                             |
| E\_CONNECTIONERROR | 0x8C114014 | 연결 오류입니다.            | 네트워크 연결을 설정할 때의 일반적인 실패(전송 계층 오류)이며, IP 주소 유효성이나 원격 컴퓨터 이름 확인과는 무관합니다. | 네트워크 연결, 방화벽 규칙, 원격 컴퓨터의 서비스 가용성을 확인합니다. 기기 간 가시성을 확인하고, 서로 ping이 가능해야 합니다. 로깅을 활성화한 상태에서 연결을 다시 시도합니다. |

## 설명

[WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame)을 통해 마지막으로 실행된 게임을 종료하려면 이 함수를 사용하세요. 이 함수는 게임 프로세스가 종료될 때까지 기다립니다.

## 요구 사항

| 요구 사항       | 값                   |
| ----------- | ------------------- |
| **헤더**      | WdRemoteIteration.h |
| **라이브러리**   | wdremoteapi.lib     |
| **지원 OS**   | Windows 11 이상       |
| **지원 아키텍처** | x64, ARM64          |

## 함께 보기

* [WdLaunchRemoteGame](/reference/remoting/functions/wdlaunchremotegame)
* [WdResumeRemoteGame](/reference/remoting/functions/wdresumeremotegame)
* [XBOX PC Remote Iteration API 오류 코드](/reference/remoting/error-codes)
* [XBOX PC Remote Iteration API](/reference/remoting/remoteiteration_members)


## Related topics

- [WdResumeRemoteGame](/ko/reference/remoting/functions/wdresumeremotegame.md)
- [WdLaunchRemoteGame](/ko/reference/remoting/functions/wdlaunchremotegame.md)
- [XBOX PC Remote Iteration API](/ko/reference/remoting/remoteiteration_members.md)
- [XBOX PC Remote (wdRemote.exe)](/ko/tools/tools-pc/commandlinetools/gr-wdRemote.md)
- [WdRegisterRemoteXboxGame](/ko/reference/remoting/functions/wdregisterremotexboxgame.md)
