Site icon EfmSoft

What does Windows error code 1170 (ERROR_SET_NOT_FOUND) mean?

 
Previous Next
ERROR_NO_MATCH ERROR_POINT_NOT_FOUND

ERROR_SET_NOT_FOUND

The requested property set does not exist on the object.

ERROR_SET_NOT_FOUND has decimal value 1170 (0x492). It distinguishes an absent group of related properties or controls from a missing object. The object can be valid and accessible while a particular optional set is unsupported, uninitialized, removed, or unavailable in the current operating state.

Where this distinction matters

Microsoft camera examples use HRESULT_FROM_WIN32(ERROR_SET_NOT_FOUND) when a requested legacy control is not available. This is a useful model: absence can be a capability result rather than corruption.

Evidence to record

Diagnostic steps

Correct application behavior

For an optional control, disable the related feature or use a documented fallback. For a mandatory set, report a clear incompatibility and stop before applying partial configuration. Creating an empty set locally is not a valid repair unless the owning API explicitly defines a creation operation.

Caching support forever can be wrong on hot-plug devices or stateful media components. Bind capability data to the device instance and relevant state generation, then refresh it after reinitialization or driver replacement.

Developer guidance

Public interfaces should distinguish “object missing,” “set missing,” “property missing,” and “value invalid.” This lets callers implement feature detection without interpreting all failures as fatal. Unit tests should cover devices with the complete set, no set, and a set whose individual properties differ by version.

Related codes

ERROR_NOT_FOUND is a generic missing-element result. ERROR_NO_MATCH indicates that matching criteria selected no candidate. ERROR_NOT_SUPPORTED can mean the entire operation is unavailable. Error 1170 specifically says that the requested property-set grouping is absent from an otherwise identified object.

Example

A camera application loads saved defaults and requests a legacy exposure-control set. A newer device exposes only a different control model, so the call returns an HRESULT derived from 1170. The application records the missing set identifier, disables the legacy slider, and continues with supported controls instead of declaring the camera broken.

References


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

Exit mobile version