public Microsoft.Kinect.Face.FaceModelBuilder OpenModelBuilder(Microsoft.Kinect.Face.FaceModelBuilderAttributes enabledAttributes)
        {
            if (_pNative == RootSystem.IntPtr.Zero)
            {
                throw new RootSystem.ObjectDisposedException("HighDefinitionFaceFrameSource");
            }

            RootSystem.IntPtr objectPointer = Microsoft_Kinect_Face_HighDefinitionFaceFrameSource_OpenModelBuilder(_pNative, enabledAttributes);
            Helper.ExceptionHelper.CheckLastError();
            if (objectPointer == RootSystem.IntPtr.Zero)
            {
                return(null);
            }

            return(Helper.NativeObjectCache.CreateOrGetObject <Microsoft.Kinect.Face.FaceModelBuilder>(objectPointer, n => new Microsoft.Kinect.Face.FaceModelBuilder(n)));
        }
 private static extern RootSystem.IntPtr Microsoft_Kinect_Face_HighDefinitionFaceFrameSource_OpenModelBuilder(RootSystem.IntPtr pNative, Microsoft.Kinect.Face.FaceModelBuilderAttributes enabledAttributes);