Beispiel #1
0
        protected ErrorCode DestroyHandle()
        {
            Debug.Assert(_handle != IntPtr.Zero);

            var errorCode = OfficialApi.DestroyHandle(_handle);

            if (errorCode != ErrorCode.MV_OK)
            {
                this.ErrorFailWithReason(errorCode);
            }
            else
            {
                this.InfoSuccess();
            }

            _handle = IntPtr.Zero;

            return(errorCode);
        }