Parameters
DeviceInfoSet
[in] Handle to the device information set that contains the interface and its underlying device. This handle is typically returned by the SetupDiGetClassDevs or SetupDiGetClassDevsEx function.
DeviceInfoData
[in, out] Pointer to an SP_DEVINFO_DATA structure that defines the device instance. If the class GUID property is being set, this structure reflects the device's new class upon return.
Property
[in] Device property to be set. See the SPDRP_* constants defined in Setupapi.h.
PropertyBuffer
[in] Pointer to a buffer that specifies the requested device property. If the property is being cleared, this parameter should be NULL and PropertyBufferSize should be zero.
PropertyBufferSize
[in] Size of the buffer, in bytes.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.