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

# ILampArray::GetLampInfo method

> Returns an ILampInfo object describing an individual Lamp on a LampArray by index, exposing position, color support, purposes, and scan code.

# ILampArray::GetLampInfo

Returns an ILampInfo for the Lamp at the given index.

## Syntax

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

### Parameters

*lampIndex*\
Type: uint32\_t

The desired index in the ILampArray for which to obtain an ILampInfo.

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

The ILampInfo corresponding to lampIndex. This will be null if lampIndex is greater than or equal to [ILampArray::GetLampCount](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount);

### Return value

Type: HRESULT

Function result.

## Remarks

The [ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo) contains properties about a Lamp at a given index in the ILampArray.

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray](/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetIndex method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [ILampArray::GetBoundingBox method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox.md)
- [ILampArray::GetLampArrayKind method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlamparraykind.md)
- [ILampArray::GetLampCount method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
- [ILampInfo::GetPosition method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
