INuiSensor::NuiStatus Method
Kinect for Windows 1.5, 1.6, 1.7
Gets the connection status of the Kinect sensor.public: HRESULT NuiStatus( void )
Parameters
- Type: void
Unused
Return Value
Type: HRESULT
Returns S_OK if the device is valid and properly connected. Otherwise, returns one of the following error codes:
Returns S_OK if the device is valid and properly connected. Otherwise, returns one of the following error codes:
| Error | Description |
|---|---|
| S_NUI_INITIALIZING | The device is connected, but still initializing. |
| E_NUI_NOTCONNECTED | The device is not connected. |
| E_NUI_NOTGENUINE | The device is not a valid Kinect. |
| E_NUI_NOTSUPPORTED | The device is an unsupported model. |
| E_NUI_INSUFFICIENTBANDWIDTH | The device is connected to a hub without the necessary bandwidth requirements. |
| E_NUI_NOTPOWERED | The device is connected, but unpowered. |
| E_NUI_NOTREADY | There was some other unspecified error. |