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

# GetLampInfo

> Retourne un objet ILampInfo décrivant un Lamp individuel d'un LampArray par son index, exposant sa position, sa prise en charge des couleurs, ses usages et son code de balayage.

# ILampArray::GetLampInfo

Retourne un ILampInfo pour le Lamp situé à l'index donné.

## Syntaxe

```cpp theme={null}
HRESULT GetLampInfo(
    uint32_t lampIndex,
    ILampInfo** lampInfo)
```

### Paramètres

*lampIndex*\
Type : uint32\_t

L'index souhaité dans l'ILampArray pour lequel obtenir un ILampInfo.

*lampInfo*  \_COM\_Outptr\_\
Type : ILampInfo\*\*

L'ILampInfo correspondant à lampIndex. Cette valeur est null si lampIndex est supérieur ou égal à [ILampArray::GetLampCount](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md);

### Valeur de retour

Type : HRESULT

Résultat de la fonction.

## Remarques

L'[ILampInfo](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md) contient les propriétés d'un Lamp situé à un index donné dans l'ILampArray.

## Configuration requise

**En-tête :** LampArray.h

**Bibliothèque :** xgameplatform.lib

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[Vue d'ensemble de l'API d'éclairage](https://docs.xbox.com/fr/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)\
[ILampInfo](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)


## Related topics

- [GetIndex](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [Notions de base sur LampArray](https://docs.xbox.com/fr/build/core-features/common/lighting/lighting-basics.md)
- [ILampArray (contenu de l'interface)](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [GetNearestSupportedColor](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [GetPosition](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
