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

# IGameInputDevice::GetContainerId

> 입력 장치의 컨테이너 ID를 가져옵니다.

입력 장치의 컨테이너 ID를 가져옵니다.

## 구문

```cpp theme={null}
void GetContainerId(
    GUID* containerId
);
```

### 매개변수

*containerId*   \_Out\_\
형식: GUID\*

장치의 컨테이너 ID를 받습니다.

### 반환값

형식: void

## 설명

컨테이너 ID는 장치의 PnP(플러그 앤 플레이) 컨테이너 ID입니다. 동일한 물리적 장치에 속하는 모든 장치 노드는 같은 컨테이너 ID를 공유합니다. 예를 들어 헤드셋 잭이 포함된 컨트롤러는 컨트롤러와 오디오 장치에 대해 별도의 장치 노드를 노출하지만, 둘 다 같은 컨테이너 ID를 보고합니다. 컨테이너 ID를 사용하여 GameInput 장치를 오디오 엔드포인트와 같이 다른 API를 통해 검색한 관련 장치와 연결할 수 있습니다.

장치에 컨테이너 ID가 없으면 *containerId*는 `GUID_NULL`로 설정됩니다.

컨테이너 ID는 장치 개체의 수명 동안 변경되지 않습니다.

GameInput v3 이하에서는 [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md)가 반환하는 [GameInputDeviceInfo](https://docs.xbox.com/ko/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) 구조체의 `containerId` 멤버에서 이 정보를 얻을 수 있었습니다.

## 요구 사항

**헤더:** GameInput.h

**라이브러리:** gameinput.lib

**지원되는 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[GameInput 개요](https://docs.xbox.com/ko/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[IGameInputDevice::GetDeviceRootId](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicerootid.md)\
[IGameInputDevice::GetPnpPath](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getpnppath.md)

## 버전 기록

| 버전 | 변경 사항 |
| - | - |
| **v4** | 도입됨. |


## Related topics

- [IGameInputDevice::GetDeviceRootId](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicerootid.md)
- [IGameInputDevice::GetPnpPath](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getpnppath.md)
- [IGameInputDevice::GetDeviceId](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceid.md)
- [IGameInputDevice::GetVendorId](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getvendorid.md)
- [IGameInputDevice::GetProductId](https://docs.xbox.com/ko/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getproductid.md)
