Esempio n. 1
0
        protected override bool ReleaseHandle()
        {
            // Verify the handle is still valid
            //
            if (!IsInvalid)
            {
                // Close the handle
                //
                return(WimgApi.CloseHandle(handle));
            }

            // Default to return true
            //
            return(true);
        }
Esempio n. 2
0
 protected override bool ReleaseHandle()
 {
     return !IsInvalid && WimgApi.CloseHandle(handle);
 }