Share via


IDepthFrameSource::get_KinectSensor Method

Gets the Kinect sensor object of the depth frame source.

Syntax

public:
HRESULT get_KinectSensor(
         IKinectSensor **sensor
)

Parameters

  • sensor
    Type: IKinectSensor
    [out] The Kinect sensor object of the depth frame source.

Return value

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

Requirements

Header: kinect.h

Library: kinect20.lib