Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Kinect for Windows 1.5, 1.6, 1.7, 1.8
Sets an array of identifiers (IDs) for skeleton tracking.
Syntax
HRESULT NuiSkeletonSetTrackedSkeletons(
DWORD TrackingIDs[NUI_SKELETON_MAX_TRACKED_COUNT]
)
Parameters
- TrackingIDs
Type: DWORD
[in] A pointer to the first DWORD 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 NuiSkeleton.h; however, include NuiApi.h in your project.