private static bool IsArrivalOrRemovalEvent(WindowMessage msg) { return(msg.IsOneOf(WParam.DBT_DEVICEARRIVAL, WParam.DBT_DEVICEREMOVECOMPLETE)); }