Skip to main content
Gets the container ID of the input device.

Syntax

Parameters

containerId   _Out_
Type: GUID*
Receives the container ID of the device.

Return value

Type: void

Remarks

The container ID is the Plug and Play (PnP) container ID of the device. All of the device nodes that belong to the same physical device share the same container ID. For example, a controller that also includes a headset jack exposes separate device nodes for the controller and the audio device, but both report the same container ID. You can use the container ID to associate a GameInput device with related devices that you discover through other APIs, such as audio endpoints. If the device doesn’t have a container ID, containerId is set to GUID_NULL. The container ID doesn’t change for the lifetime of the device object. In GameInput v3 and earlier, this information was available from the containerId member of the GameInputDeviceInfo structure returned by IGameInputDevice::GetDeviceInfo.

Requirements

Header: GameInput.h Library: gameinput.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

Overview of GameInput
IGameInputDevice
IGameInputDevice::GetDeviceRootId
IGameInputDevice::GetPnpPath

Version History

Last modified on November 5, 2026