REMOVEDEVICE_PARAMS


typedef struct {
    UINT cbSize;
    DWORD dwFlags;
    DWORD dwConfigID;
} REMOVEDEVICE_PARAMS;

DIF_REMOVE class install parameters

cbSize

Size of the REMOVEDEVICE_PARAMS struct.

dwFlags

Flags indicating the type of removal to perform.

DI_REMOVEDEVICE_GLOBAL

The device will be removed globally.

DI_REMOVEDEVICE_CONFIGSPECIFIC

The device will be removed from only the specified configuration.


dwConfigID

If DI_REMOVEDEVICE_CONFIGSPECIFIC is set, then this is the configuration the device will be removed from. 0 means the current config.