| Previous | Next |
| SPAPI_E_NO_DEVICE_SELECTED | SPAPI_E_DEVINFO_DATA_LOCKED |
SPAPI_E_DEVINFO_LIST_LOCKED
SPAPI_E_DEVINFO_LIST_LOCKED means that SetupAPI rejected a mutation because the device information set is locked. This generally indicates an operation in progress that owns the set state, so adding, deleting, or otherwise changing entries at that point would make the API state inconsistent.
What to check
- Complete the active installation, enumeration, or callback path before modifying the HDEVINFO set.
- Avoid sharing one mutable device information set across concurrent operations without coordination.
- Recreate a separate set for independent workflows instead of attempting to force a concurrent update.
Microsoft: using device installation functions
Looking for a different code? Search another status or error code.
