SetupDiSelectOEMDrv

BOOLEAN
SetupDiSelectOEMDrv(
IN HWND
hwndParent, /* optional */
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData /* optional */
);

SetupDiSelectOEMDrv selects a driver for a device using an OEM path supplied by the user.

Parameters

hwndParent

Supplies a window handle that will be the parent of any dialogs created during the processing of this function. This parameter can be used to override the hwndParent field in the install parameters block of the specified device information set or element.

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 device being installed is associated with the global class driver list of the device information set.

Return Value

The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved by a call to GetLastError.

Comments

This function asks the user for the OEM path and then calls the class installer to select a driver from the OEM path.

See Also

SetupDiAskForOEMDisk