| Previous | Next |
| ERROR_WMI_GUID_NOT_FOUND | ERROR_WMI_ITEMID_NOT_FOUND |
ERROR_WMI_INSTANCE_NOT_FOUND
The block exists, but this instance does not
WMI can address instances either by an index into a provider's static name list or by a dynamic instance-name string. This status means that the data-block GUID was recognized, but the requested index is outside the registered range or the supplied dynamic name no longer identifies an instance that the provider supports.
That distinction matters for hot-plug devices and connection-like objects. A GUID can remain registered while individual instances appear and disappear. For static names, WMI uses the registration data; for dynamic names, the provider must validate the name in the request buffer itself.
Checks that identify the failing layer
- For static names, log the requested index together with the
InstanceCountand the registration generation. - For dynamic names, validate the length, offset, Unicode string, and current object lifetime before dereferencing the target.
- Update registration when a provider changes a static instance list; do not reuse an old index after a device has been removed.
References
- Windows WDK: defining WMI instance names
- Windows WDK: instance selection for a change request
- Windows WDK: WMI registration flags
Looking for a different code? Search another status or error code.