SetupDiGetDeviceInstallParams

BOOLEAN
SetupDiGetDeviceInstallParams(
IN HDEVINFO DeviceInfoSet,
IN PSP_DEVINFO_DATA DeviceInfoData, /* optional */
OUT PSP_DEVINSTALL_PARAMS DeviceInstallParams
);

SetupDiGetDeviceInstallParams retrieves install parameters for a device information set or a particular device information element.

Parameters

DeviceInfoSet

Supplies a handle to the device information set containing information about the device instance to retrieve.

DeviceInfoData

Supplies a pointer to an SP_DEVINFO_DATA structure that contains the device install parameters to retrieve. If this parameter is not specified, the install parameters retrieved are those associated with the device information set.

DeviceInstallParams

Supplies a pointer to an SP_DEVINSTALL_PARAMS structure that receives the install parameters. The cbSize field of this structure must be set to the size, in bytes, of the structure before calling this function.

Return Value

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

See Also

SetupDiSetDeviceInstallParams