Esempio n. 1
0
 private void UnregisterThumbnail(IntPtr thumbnailHandle)
 {
     try
     {
         DwmApiNativeMethods.DwmUnregisterThumbnail(thumbnailHandle);
     }
     catch (ArgumentException)
     {
     }
 }
Esempio n. 2
0
        public void Unregister()
        {
            if ((!this._windowManager.IsCompositionEnabled) || (this._handle == IntPtr.Zero))
            {
                return;
            }

            try
            {
                DwmApiNativeMethods.DwmUnregisterThumbnail(this._handle);
            }
            catch (ArgumentException)
            {
            }
        }