Share via


NuiGetSensorCount

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Gets the number of Kinect sensors on the machine, including disconnected ones.

Syntax

HRESULT NuiGetSensorCount(
         int *pCount
)

Parameters

  • pCount
    Type: int
    [in] Pointer to an integer that indicates the number of Kinect sensors.

Return Value

Type: HRESULT
Returns S_OK if successful; otherwise, returns a failure code.

Requirements

Header: Declared in NuiSensor.h; however, include NuiApi.h in your project.