internal void UnadviseInternal(uint dwCookie)
        {
            HResult hr = fileOperation.Unadvise(dwCookie);

            if (!CoreErrorHelper.Succeeded(hr))
            {
                Marshal.ThrowExceptionForHR((int)hr);
            }
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     if (!_disposed)
     {
         _disposed = true;
         if (_callbackSink != null)
         {
             _fileOperation.Unadvise(SinkCookie);
         }
         Marshal.FinalReleaseComObject(_fileOperation);
     }
 }