Etaash Mathamsetty (@etaash.mathamsetty) commented about dlls/setupapi/devinst.c:
return FALSE;- }
- if (IsEqualDevPropKey( *key, DEVPKEY_DeviceInterface_Enabled ))
- {
*type = DEVPROP_TYPE_BOOLEAN;ret = ERROR_SUCCESS;if (buf_size >= sizeof( DEVPROP_BOOLEAN ))*buf = (iface->flags & SPINT_ACTIVE) ? DEVPROP_TRUE : DEVPROP_FALSE;elseret = ERROR_INSUFFICIENT_BUFFER;if (req_size)*req_size = sizeof( DEVPROP_BOOLEAN );- }
- else
ret = get_device_reg_property( iface->refstr_key, key, type, buf, buf_size, req_size );
btw it might be worthwhile to replace the existing `get_device_property` with this function