public virtual int get_KinectSensor( out IKinectSensor sensor ) { var fp = GetFunctionPointer(9); if (m_get_KinectSensorFunc == null) { m_get_KinectSensorFunc = (get_KinectSensorFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(get_KinectSensorFunc)); } sensor = new IKinectSensor(); return(m_get_KinectSensorFunc(m_ptr, out sensor.PtrForNew)); }
public static extern int GetDefaultKinectSensor( [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <IKinectSensor>))] out IKinectSensor defaultKinectSensor );