//Name: CutLooseHardareNotifications //Inputs: handle used when hooking //Outputs: None //Errors: This method may log the following errors. // NONE //Remarks: Cleans up unmanaged resources. public void CutLooseHardwareNotifications(IntPtr callback) { try { Native.UnregisterDeviceNotification(callback); } catch { //Just being extra cautious since the code is unmanged } }