Hi,
The following (XP DDK devcon sample) series of API calls ends with failure:
DeviceInfoSet = SetupDiCreateDeviceInfoList(Net Class GUID, 0)
SetupDiCreateDeviceInfo(DeviceInfoSet, (char *)class_name, &class_guid,
NULL, 0, DICD_GENERATE_ID, &DeviceInfoData)
SetupDiSetDeviceRegistryProperty(DeviceInfoSet, &DeviceInfoData,
SPDRP_HARDWAREID, (LPBYTE)hw_id, strlen(hw_id) + 2)
The last call fails and GetLastError indicates : The parameter is invalid
What can possibly fail this series of API calls , which definitely worked
for on most occasions.
Thanks,
Gadi.