SetupDiAskForOEMDisk

BOOLEAN
    SetupDiAskForOEMDisk(
        IN HDEVINFO  DeviceInfoSet,
        IN PSP_DEVINFO_DATA  DeviceInfoData    /* optional */
        );

SetupDiAskForOEMDisk displays a dialog that asks the user for the path to an OEM installation disk.

Parameters
DeviceInfoSet
Supplies a handle to the device information set that contains the device being installed.
DeviceInfoData
Supplies a pointer to an SP_DEVINFO_DATA structure for the device being installed. If this parameter is not specified, the driver being installed is associated with the global class list of the device information set.
Return Value

The function returns TRUE if it is successful and the DriverPath field of the SP_DEVINSTALLPARAMS structure is updated to reflect the new path. If the user cancels the dialog, the function returns FALSE and a call to GetLastError returns ERROR_CANCELLED.

Comments

This function allows the user to browse local and network drives for OEM installation files.

See Also

SetupDiSelectOEMDrv