If an operation does not result in an error, WMI returns one of the following codes as an HRESULT that indicates the status of the operation.
Note Some methods in WMI classes can return system and network error codes (64 for example). You can check the definition of these types of error codes by using the net helpmsg command in the command prompt window. For example, the command net helpmsg 64 returns the message: The specified network name is no longer available.
In C++, you can call FormatMessage and specify C:\Windows\System32\wbem\wmiutils.dll as the message module.
The operation was successful.
No more objects are available, the number of objects returned is less than the number requested, or this is the end of an enumeration. This value is also returned when this method is called with a value of 0 for the uCount parameter.
An attempt was made to create an object or class that already exists.
An overridden property was deleted. This value is returned to signal that the original non-overridden value has been restored as a result of the deletion.
The items (objects, classes, and so on) that are being compared are not identical.
A call timed out. This is not an error condition. Therefore, some results may have also been returned.
No more data is available from the enumeration, and the user must terminate the enumeration.
The operation was intentionally or unintentionally canceled.
A request is still in progress, and the results are not yet available.
More than one copy of the same object was detected in the result set of an enumeration.
The user was denied access to some but not all resources.
The user did not receive all of the objects requested due to inaccessible resources (other than security violations).