| Previous | Next |
| SPAPI_E_INVALID_DEVINST_NAME | SPAPI_E_DEVINST_ALREADY_EXISTS |
SPAPI_E_INVALID_CLASS
SPAPI_E_INVALID_CLASS means that SetupAPI could not resolve the installation class named by the caller or INF. The problem can be a missing registry class, an invalid GUID, or a Class and ClassGuid pair that does not describe the same device setup class.
What to check
- Validate the ClassGuid syntax and confirm that the Class name is correct for the intended device category.
- Use a system-defined class where it applies instead of inventing a near-equivalent category.
- Check the INF Version section and the caller-supplied class GUID for inconsistent values.
Microsoft: system-defined device setup classes
Looking for a different code? Search another status or error code.