[misc] disable new drive notification while app is running

* new drive notifications from explorer are annoying
* use Local Group Policy to temporarily disable them
* also fixed missing SetupDiDestroyDeviceInfoList call
This commit is contained in:
Pete Batard 2011-12-11 23:38:16 +00:00
parent df7a0b1fc3
commit 72485b7568
3 changed files with 160 additions and 8 deletions

View file

@ -16,11 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <windows.h>
#include <winioctl.h> // for DISK_GEOMETRY
#include <winioctl.h> // for DISK_GEOMETRY
#pragma once
#define RUFUS_DEBUG
/* Program options */
#define RUFUS_DEBUG // print debug info to Debug facility (use debugview to consult)
#define DISABLE_AUTORUN // disable new USB drive notification from explorer when application is running
#define STR_NO_LABEL "NO_LABEL"
#define RUFUS_CANCELBOX_TITLE "Rufus - Cancellation"