Handling the events: In the case Event type 3 is triggered, which as per Microsoft’s documentation means – A device plugged off (Removal) event , then we should MUTE our Machine , and when the device is plugged in (Arrival) event is generated we need to UNMUTE the machine.