WMI Non-Error Constants

WMI return codes that indicate status and do not indicate an error.

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.

WBEM_S_NO_ERROR

0 (0x0)

The operation was successful.

WBEM_S_FALSE

1 (0x1)

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.

WBEM_S_ALREADY_EXISTS

262145 (0x40001)

An attempt was made to create an object or class that already exists.

WBEM_S_RESET_TO_DEFAULT

262146 (0x40002)

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.

WBEM_S_DIFFERENT

262147 (0x40003)

The items (objects, classes, and so on) that are being compared are not identical.

WBEM_S_TIMEDOUT

262148 (0x40004)

A call timed out. This is not an error condition. Therefore, some results may have also been returned.

WBEM_S_NO_MORE_DATA

262149 (0x40005)

No more data is available from the enumeration, and the user must terminate the enumeration.

WBEM_S_OPERATION_CANCELLED

262150 (0x40006)

The operation was intentionally or unintentionally canceled.

WBEM_S_PENDING

262151 (0x40007)

A request is still in progress, and the results are not yet available.

WBEM_S_DUPLICATE_OBJECTS

262152 (0x40008)

More than one copy of the same object was detected in the result set of an enumeration.

WBEM_S_ACCESS_DENIED

262153 (0x40009)

The user was denied access to some but not all resources.

WBEM_S_PARTIAL_RESULTS

262160 (0x40010)

The user did not receive all of the objects requested due to inaccessible resources (other than security violations).

WBEM_S_LIMITED_SERVICE

274433 (0x43001)

The provider is capable of limited service.

WBEM_S_INDIRECTLY_UPDATED

274434 (0x43002)

Reserved for future use.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
WbemCli.h
IDL
WbemCli.idl

See also

WMI Return Codes