Share via


INuiSensor::NuiSkeletonSetTrackedSkeletons Method

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Sets an array of identifiers (IDs) for skeleton tracking.

Syntax

public:
HRESULT NuiSkeletonSetTrackedSkeletons(
         DWORD *TrackingIDs
)

Parameters

  • TrackingIDs
    Type: DWORD
    [in] A pointer to the first element in an array of tracking IDs, one for each skeleton.

Return Value

Type: HRESULT
Returns S_OK if successful; otherwise, returns one of the failure codes in the following table.

Error Description
E_INVALIDARG The value of the TrackingIDs parameter is NULL.
E_NUI_STREAM_NOT_ENABLED Kinect is not initialized or is not initialized with the NUI_INITIALIZE_FLAG_USES_SKELETON flag.
E_NUI_FEATURE_NOT_INITIALIZED Skeletal tracking is not enabled with the NUI_SKELETON_TRACKING_FLAG_TITLE_SETS_TRACKED_SKELETONS flag.

Requirements

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