public void Processed(string fileName) { if (_wrappedInterfacePtr != IntPtr.Zero) { IProgressUpdateInterface wrappedInterface = (IProgressUpdateInterface)Marshal.GetUniqueObjectForIUnknown(_wrappedInterfacePtr); wrappedInterface.Processed(fileName); } }