WqlEventQuery query = new WqlEventQuery("SELECT * FROM Win32_VolumeChangeEvent WHERE EventType = 2"); watcher.EventArrived += watcher_EventArrived; watcher.Query = query; watcher.Start(); watcher.WaitForNextEvent();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)