SP_REMOVEDEVICE_PARAMS

typedef struct _SP_REMOVEDEVICE_PARAMS {
    SP_CLASSINSTALL_HEADER ClassInstallHeader;
    DWORD Scope;
    DWORD HwProfile;
} SP_REMOVEDEVICE_PARAMS, *PSP_REMOVEDEVICE_PARAMS;
 

The SP_REMOVEDEVICE_PARAMS structure corresponds to the DIF_REMOVE installation request.

Members
ClassInstallHeader
Defines the class installation request for the install parameter structure.
Scope
Flags that indicate the scope of the device removal. Can be one of the following values:
DI_REMOVEDEVICE_GLOBAL
Make this change in all hardware profiles.
DI_REMOVEDEVICE_CONFIGSPECIFIC
Make this change to only the hardware profile specified by HwProfile.
HwProfile
Supplies the hardware profile ID for profile-specific changes.
See Also

SetupDiCallClassInstaller, SetupDiRemoveDevice