| Previous | Next |
| SPAPI_E_NO_INF | SPAPI_E_CANT_LOAD_CLASS_ICON |
SPAPI_E_NO_SUCH_DEVINST
SPAPI_E_NO_SUCH_DEVINST means that SetupAPI could not find the referenced device instance in the hardware tree. The device may have been removed, the caller may be using an obsolete instance ID, or the request may target a different machine or hardware profile than the one being enumerated.
What to check
- Re-enumerate devices immediately before acting on a device that can be unplugged or reconfigured.
- Confirm that the instance ID came from the same local or remote machine context as the operation.
- Handle removal races instead of reusing a cached device information element indefinitely.
Microsoft: device instance IDs
Looking for a different code? Search another status or error code.
