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

> Obtiene el identificador de proveedor del dispositivo de entrada.

Obtiene el identificador de proveedor del dispositivo de entrada.

## Sintaxis

```cpp theme={null}
uint16_t GetVendorId();
```

### Parámetros

Este método no tiene parámetros.

### Valor devuelto

Tipo: uint16\_t

El identificador de proveedor que identifica al fabricante del dispositivo de entrada, o 0 si el dispositivo no notifica un identificador de proveedor.

## Comentarios

El identificador de proveedor, junto con el identificador de producto devuelto por [IGameInputDevice::GetProductId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getproductid.md), identifica un modelo de dispositivo específico. En los dispositivos USB y Bluetooth, suelen ser los mismos identificadores de proveedor y de producto que el dispositivo notifica al sistema operativo. Use [IGameInputDevice::GetRevisionNumber](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getrevisionnumber.md) para distinguir entre revisiones de hardware del mismo producto.

El identificador de proveedor no cambia durante la vida útil del objeto de dispositivo.

En el siguiente ejemplo se comprueba si un dispositivo coincide con un identificador de proveedor y de producto específicos.

```cpp theme={null}
bool IsDeviceModel(
    IGameInputDevice* device,
    uint16_t vendorId,
    uint16_t productId) noexcept
{
    return device->GetVendorId() == vendorId &&
           device->GetProductId() == productId;
}
```

En GameInput v3 y versiones anteriores, esta información estaba disponible en el miembro `vendorId` de la estructura [GameInputDeviceInfo](https://docs.xbox.com/es/reference/input/gameinput/deprecated/structs/gameinputdeviceinfo.md) devuelta por [IGameInputDevice::GetDeviceInfo](https://docs.xbox.com/es/reference/input/gameinput/deprecated/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceinfo.md).

## Requisitos

**Encabezado:** GameInput.h

**Biblioteca:** gameinput.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[Información general de GameInput](https://docs.xbox.com/es/build/core-features/common/input/overviews/input-overview.md)\
[IGameInputDevice](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/igameinputdevice.md)\
[IGameInputDevice::GetProductId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getproductid.md)\
[IGameInputDevice::GetRevisionNumber](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getrevisionnumber.md)

## Historial de versiones

| Versión | Cambios |
| - | - |
| **v4** | Se introdujo. |


## Related topics

- [IGameInputDevice::GetProductId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getproductid.md)
- [IGameInputDevice::GetRevisionNumber](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getrevisionnumber.md)
- [IGameInputDevice::GetDeviceId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdeviceid.md)
- [IGameInputDevice::GetDeviceRootId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getdevicerootid.md)
- [IGameInputDevice::GetContainerId](https://docs.xbox.com/es/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getcontainerid.md)
