void IAppDomainShutdownListener.NotifyShutdown()
{
if (_pInteropDeviceBitmap != null)
{
// Stop unmanaged code from sending us messages because the AppDomain is going down
UnsafeNativeMethods.InteropDeviceBitmap.Detach(_pInteropDeviceBitmap);
}
// The finalizer does the same thing, so it's no longer necessary
GC.SuppressFinalize(this);
}