What does HRESULT 0x800F0209 (SPAPI_E_INVALID_REG_PROPERTY) mean?

 
Previous Next
SPAPI_E_DEVINFO_NOT_REGISTERED SPAPI_E_NO_INF

SPAPI_E_INVALID_REG_PROPERTY

SPAPI_E_INVALID_REG_PROPERTY means that the caller supplied a registry-property code SetupAPI does not recognize for the requested operation. Device, class, and interface properties have different APIs and identifiers; using an identifier in the wrong family can lead to this failure.

What to check

  • Confirm which SetupDi property API is being called and use identifiers documented for that API.
  • Check that the property is supported for the selected object type: device, setup class, or device interface.
  • Validate casts and constants when code shares a generic property wrapper across several APIs.

Microsoft: SetupAPI property functions


Looking for a different code? Search another status or error code.