WbemErrorEnum enumeration (wbemdisp.h)
The WbemErrorEnum constants define the errors that may be returned by Scripting API for WMI calls.
The WMI scripting type library Wbemdisp.tlb defines these constants. Visual Basic applications can access this library; script languages must use the value of the constant directly, unless they use the Windows Script Host (WSH) XML file format. For more information, see Using the WMI Scripting Type Library.
Other languages may have different names for these values, see WMI Error Constants and WBEMSTATUS.
Syntax
typedef enum WbemErrorEnum {
wbemNoErr = 0,
wbemErrFailed = 0x80041001,
wbemErrNotFound = 0x80041002,
wbemErrAccessDenied = 0x80041003,
wbemErrProviderFailure = 0x80041004,
wbemErrTypeMismatch = 0x80041005,
wbemErrOutOfMemory = 0x80041006,
wbemErrInvalidContext = 0x80041007,
wbemErrInvalidParameter = 0x80041008,
wbemErrNotAvailable = 0x80041009,
wbemErrCriticalError = 0x8004100a,
wbemErrInvalidStream = 0x8004100b,
wbemErrNotSupported = 0x8004100c,
wbemErrInvalidSuperclass = 0x8004100d,
wbemErrInvalidNamespace = 0x8004100e,
wbemErrInvalidObject = 0x8004100f,
wbemErrInvalidClass = 0x80041010,
wbemErrProviderNotFound = 0x80041011,
wbemErrInvalidProviderRegistration = 0x80041012,
wbemErrProviderLoadFailure = 0x80041013,
wbemErrInitializationFailure = 0x80041014,
wbemErrTransportFailure = 0x80041015,
wbemErrInvalidOperation = 0x80041016,
wbemErrInvalidQuery = 0x80041017,
wbemErrInvalidQueryType = 0x80041018,
wbemErrAlreadyExists = 0x80041019,
wbemErrOverrideNotAllowed = 0x8004101a,
wbemErrPropagatedQualifier = 0x8004101b,
wbemErrPropagatedProperty = 0x8004101c,
wbemErrUnexpected = 0x8004101d,
wbemErrIllegalOperation = 0x8004101e,
wbemErrCannotBeKey = 0x8004101f,
wbemErrIncompleteClass = 0x80041020,
wbemErrInvalidSyntax = 0x80041021,
wbemErrNondecoratedObject = 0x80041022,
wbemErrReadOnly = 0x80041023,
wbemErrProviderNotCapable = 0x80041024,
wbemErrClassHasChildren = 0x80041025,
wbemErrClassHasInstances = 0x80041026,
wbemErrQueryNotImplemented = 0x80041027,
wbemErrIllegalNull = 0x80041028,
wbemErrInvalidQualifierType = 0x80041029,
wbemErrInvalidPropertyType = 0x8004102a,
wbemErrValueOutOfRange = 0x8004102b,
wbemErrCannotBeSingleton = 0x8004102c,
wbemErrInvalidCimType = 0x8004102d,
wbemErrInvalidMethod = 0x8004102e,
wbemErrInvalidMethodParameters = 0x8004102f,
wbemErrSystemProperty = 0x80041030,
wbemErrInvalidProperty = 0x80041031,
wbemErrCallCancelled = 0x80041032,
wbemErrShuttingDown = 0x80041033,
wbemErrPropagatedMethod = 0x80041034,
wbemErrUnsupportedParameter = 0x80041035,
wbemErrMissingParameter = 0x80041036,
wbemErrInvalidParameterId = 0x80041037,
wbemErrNonConsecutiveParameterIds = 0x80041038,
wbemErrParameterIdOnRetval = 0x80041039,
wbemErrInvalidObjectPath = 0x8004103a,
wbemErrOutOfDiskSpace = 0x8004103b,
wbemErrBufferTooSmall = 0x8004103c,
wbemErrUnsupportedPutExtension = 0x8004103d,
wbemErrUnknownObjectType = 0x8004103e,
wbemErrUnknownPacketType = 0x8004103f,
wbemErrMarshalVersionMismatch = 0x80041040,
wbemErrMarshalInvalidSignature = 0x80041041,
wbemErrInvalidQualifier = 0x80041042,
wbemErrInvalidDuplicateParameter = 0x80041043,
wbemErrTooMuchData = 0x80041044,
wbemErrServerTooBusy = 0x80041045,
wbemErrInvalidFlavor = 0x80041046,
wbemErrCircularReference = 0x80041047,
wbemErrUnsupportedClassUpdate = 0x80041048,
wbemErrCannotChangeKeyInheritance = 0x80041049,
wbemErrCannotChangeIndexInheritance = 0x80041050,
wbemErrTooManyProperties = 0x80041051,
wbemErrUpdateTypeMismatch = 0x80041052,
wbemErrUpdateOverrideNotAllowed = 0x80041053,
wbemErrUpdatePropagatedMethod = 0x80041054,
wbemErrMethodNotImplemented = 0x80041055,
wbemErrMethodDisabled = 0x80041056,
wbemErrRefresherBusy = 0x80041057,
wbemErrUnparsableQuery = 0x80041058,
wbemErrNotEventClass = 0x80041059,
wbemErrMissingGroupWithin = 0x8004105a,
wbemErrMissingAggregationList = 0x8004105b,
wbemErrPropertyNotAnObject = 0x8004105c,
wbemErrAggregatingByObject = 0x8004105d,
wbemErrUninterpretableProviderQuery = 0x8004105f,
wbemErrBackupRestoreWinmgmtRunning = 0x80041060,
wbemErrQueueOverflow = 0x80041061,
wbemErrPrivilegeNotHeld = 0x80041062,
wbemErrInvalidOperator = 0x80041063,
wbemErrLocalCredentials = 0x80041064,
wbemErrCannotBeAbstract = 0x80041065,
wbemErrAmendedObject = 0x80041066,
wbemErrClientTooSlow = 0x80041067,
wbemErrNullSecurityDescriptor = 0x80041068,
wbemErrTimeout = 0x80041069,
wbemErrInvalidAssociation = 0x8004106a,
wbemErrAmbiguousOperation = 0x8004106b,
wbemErrQuotaViolation = 0x8004106c,
wbemErrTransactionConflict = 0x8004106d,
wbemErrForcedRollback = 0x8004106e,
wbemErrUnsupportedLocale = 0x8004106f,
wbemErrHandleOutOfDate = 0x80041070,
wbemErrConnectionFailed = 0x80041071,
wbemErrInvalidHandleRequest = 0x80041072,
wbemErrPropertyNameTooWide = 0x80041073,
wbemErrClassNameTooWide = 0x80041074,
wbemErrMethodNameTooWide = 0x80041075,
wbemErrQualifierNameTooWide = 0x80041076,
wbemErrRerunCommand = 0x80041077,
wbemErrDatabaseVerMismatch = 0x80041078,
wbemErrVetoPut = 0x80041079,
wbemErrVetoDelete = 0x8004107a,
wbemErrInvalidLocale = 0x80041080,
wbemErrProviderSuspended = 0x80041081,
wbemErrSynchronizationRequired = 0x80041082,
wbemErrNoSchema = 0x80041083,
wbemErrProviderAlreadyRegistered = 0x80041084,
wbemErrProviderNotRegistered = 0x80041085,
wbemErrFatalTransportError = 0x80041086,
wbemErrEncryptedConnectionRequired = 0x80041087,
wbemErrRegistrationTooBroad = 0x80042001,
wbemErrRegistrationTooPrecise = 0x80042002,
wbemErrTimedout = 0x80043001,
wbemErrResetToDefault = 0x80043002
} ;
Constants
wbemNoErr Value: 0 The call was successful. |
wbemErrFailed Value: 0x80041001 The call failed. |
wbemErrNotFound Value: 0x80041002 The object could not be found. |
wbemErrAccessDenied Value: 0x80041003 The current user does not have permission to perform the action. |
wbemErrProviderFailure Value: 0x80041004 The provider has failed at some time other than during initialization. |
wbemErrTypeMismatch Value: 0x80041005 A type mismatch occurred. |
wbemErrOutOfMemory Value: 0x80041006 There was not enough memory for the operation. |
wbemErrInvalidContext Value: 0x80041007 The SWbemNamedValue object is not valid. |
wbemErrInvalidParameter Value: 0x80041008 One of the parameters to the call is not correct. |
wbemErrNotAvailable Value: 0x80041009 The resource, typically a remote server, is not currently available. |
wbemErrCriticalError Value: 0x8004100a An internal, critical, and unexpected error occurred. Report this error to Microsoft Technical Support. |
wbemErrInvalidStream Value: 0x8004100b One or more network packets were corrupted during a remote session. |
wbemErrNotSupported Value: 0x8004100c The feature or operation is not supported. |
wbemErrInvalidSuperclass Value: 0x8004100d The parent class specified is not valid. |
wbemErrInvalidNamespace Value: 0x8004100e The namespace specified could not be found. |
wbemErrInvalidObject Value: 0x8004100f The specified instance is not valid. |
wbemErrInvalidClass Value: 0x80041010 The specified class is not valid. |
wbemErrProviderNotFound Value: 0x80041011 A provider referenced in the schema does not have a corresponding registration. |
wbemErrInvalidProviderRegistration Value: 0x80041012 A provider referenced in the schema has an incorrect or incomplete registration. This error may be caused by a missing pragma namespace command in the MOF file used to register the provider, resulting in the provider being registered in the wrong WMI namespace. This error may also be caused by a corrupt repository, which may be fixed by deleting it and recompiling the MOF files. |
wbemErrProviderLoadFailure Value: 0x80041013 COM cannot locate a provider referenced in the schema. This error may be caused by any of the following: The provider is using a WMI DLL that does not match the .lib fileused when the provider was built. The provider's DLL or any of the DLLs on which it depends is corrupt. The provider failed to export DllRegisterServer. An in-process provider was not registered using /regsvr32. An out-of-process provider was not registered using /regserver. |
wbemErrInitializationFailure Value: 0x80041014 A component, such as a provider, failed to initialize for internal reasons. |
wbemErrTransportFailure Value: 0x80041015 A networking error occurred, preventing normal operation. |
wbemErrInvalidOperation Value: 0x80041016 The requested operation is not valid. This error usually applies to invalid attempts to delete classes or properties. |
wbemErrInvalidQuery Value: 0x80041017 The requested operation is not valid. This error usually applies to invalid attempts to delete classes or properties. |
wbemErrInvalidQueryType Value: 0x80041018 The requested query language is not supported. |
wbemErrAlreadyExists Value: 0x80041019 In a put operation, the wbemChangeFlagCreateOnly flag was specified, but the instance already exists. |
wbemErrOverrideNotAllowed Value: 0x8004101a It is not possible to perform the add operation on this qualifier because the owning object does not permit overrides. |
wbemErrPropagatedQualifier Value: 0x8004101b The user attempted to delete a qualifier that was not owned. The qualifier was inherited from a parent class. |
wbemErrPropagatedProperty Value: 0x8004101c The user attempted to delete a property that was not owned. The property was inherited from a parent class. |
wbemErrUnexpected Value: 0x8004101d The client made an unexpected and illegal sequence of calls, such as calling EndEnumeration before calling BeginEnumeration. |
wbemErrIllegalOperation Value: 0x8004101e The user requested an illegal operation, such as spawning a class from an instance. |
wbemErrCannotBeKey Value: 0x8004101f There was an illegal attempt to specify a key qualifier on a property that cannot be a key. The keys are specified in the class definition for an object, and cannot be altered on a per-instance basis. |
wbemErrIncompleteClass Value: 0x80041020 The current object is not a valid class definition. Either it is incomplete, or it has not been registered with WMI using SWbemObject.Put_. |
wbemErrInvalidSyntax Value: 0x80041021 The syntax of an input parameter is incorrect for the applicable data structure. For example, when a CIM datetime structure does not have the correct format when passed to SWbemDateTime.SetFileTime. |
wbemErrNondecoratedObject Value: 0x80041022 Reserved for future use. |
wbemErrReadOnly Value: 0x80041023 The property that you are attempting to modify is read-only. |
wbemErrProviderNotCapable Value: 0x80041024 The provider cannot perform the requested operation. This would include a query that is too complex, retrieving an instance, creating or updating a class, deleting a class, or enumerating a class. |
wbemErrClassHasChildren Value: 0x80041025 An attempt was made to make a change that would invalidate a subclass. |
wbemErrClassHasInstances Value: 0x80041026 An attempt has been made to delete or modify a class that has instances. |
wbemErrQueryNotImplemented Value: 0x80041027 Reserved for future use. |
wbemErrIllegalNull Value: 0x80041028 A value of Nothing was specified for a property that may not be Nothing, such as one that is marked by a Key, Indexed, or Not_Null qualifier. |
wbemErrInvalidQualifierType Value: 0x80041029 The CIM type specified for a property is not valid. |
wbemErrInvalidPropertyType Value: 0x8004102a The CIM type specified for a property is not valid. |
wbemErrValueOutOfRange Value: 0x8004102b The request was made with an out-of-range value, or is incompatible with the type. |
wbemErrCannotBeSingleton Value: 0x8004102c An illegal attempt was made to make a class singleton, such as when the class is derived from a non-singleton class. |
wbemErrInvalidCimType Value: 0x8004102d The CIM type specified is not valid. |
wbemErrInvalidMethod Value: 0x8004102e The requested method is not available. |
wbemErrInvalidMethodParameters Value: 0x8004102f The parameters provided for the method are not valid. |
wbemErrSystemProperty Value: 0x80041030 There was an attempt to get qualifiers on a system property. |
wbemErrInvalidProperty Value: 0x80041031 The property type is not recognized. |
wbemErrCallCancelled Value: 0x80041032 An asynchronous process has been canceled internally or by the user. Note that due to the timing and nature of the asynchronous operation the operation may not have been truly canceled. |
wbemErrShuttingDown Value: 0x80041033 The user has requested an operation while WMI is in the process of shutting down. |
wbemErrPropagatedMethod Value: 0x80041034 An attempt was made to reuse an existing method name from a parent class, and the signatures did not match. |
wbemErrUnsupportedParameter Value: 0x80041035 One or more parameter values, such as a query text, is too complex or unsupported. WMI is therefore requested to retry the operation with simpler parameters. |
wbemErrMissingParameter Value: 0x80041036 A parameter was missing from the method call. |
wbemErrInvalidParameterId Value: 0x80041037 A method parameter has an ID qualifier that is not valid. |
wbemErrNonConsecutiveParameterIds Value: 0x80041038 One or more of the method parameters have ID qualifiers that are out of sequence. |
wbemErrParameterIdOnRetval Value: 0x80041039 The return value for a method has an ID qualifier. |
wbemErrInvalidObjectPath Value: 0x8004103a The specified object path was not valid. |
wbemErrOutOfDiskSpace Value: 0x8004103b Disk is out of space or the 4 GB limit on WMI repository (CIM repository) size is reached. |
wbemErrBufferTooSmall Value: 0x8004103c The supplied buffer was too small to hold all the objects in the enumerator or to read a string property. |
wbemErrUnsupportedPutExtension Value: 0x8004103d The provider does not support the requested put operation. |
wbemErrUnknownObjectType Value: 0x8004103e An object with an incorrect type or version was encountered during marshaling. |
wbemErrUnknownPacketType Value: 0x8004103f A packet with an incorrect type or version was encountered during marshaling. |
wbemErrMarshalVersionMismatch Value: 0x80041040 The packet has an unsupported version. |
wbemErrMarshalInvalidSignature Value: 0x80041041 The packet appears to be corrupted. |
wbemErrInvalidQualifier Value: 0x80041042 An attempt has been made to mismatch qualifiers, such as putting [key] on an object instead of a property. |
wbemErrInvalidDuplicateParameter Value: 0x80041043 A duplicate parameter has been declared in a CIM method. |
wbemErrTooMuchData Value: 0x80041044 Reserved for future use. |
wbemErrServerTooBusy Value: 0x80041045 A call to IWbemObjectSink::Indicate has failed. The provider may choose to refire the event. |
wbemErrInvalidFlavor Value: 0x80041046 The specified flavor was not valid. |
wbemErrCircularReference Value: 0x80041047 An attempt has been made to create a reference that is circular (for example, deriving a class from itself). |
wbemErrUnsupportedClassUpdate Value: 0x80041048 The specified class is not supported. |
wbemErrCannotChangeKeyInheritance Value: 0x80041049 An attempt was made to change a key when instances or subclasses are already using the key. |
wbemErrCannotChangeIndexInheritance Value: 0x80041050 An attempt was made to change an index when instances or subclasses are already using the index. |
wbemErrTooManyProperties Value: 0x80041051 An attempt was made to create more properties than the current version of the class supports. |
wbemErrUpdateTypeMismatch Value: 0x80041052 A property was redefined with a conflicting type in a derived class. |
wbemErrUpdateOverrideNotAllowed Value: 0x80041053 An attempt was made in a derived class to override a non-overridable qualifier. |
wbemErrUpdatePropagatedMethod Value: 0x80041054 A method was redeclared with a conflicting signature in a derived class. |
wbemErrMethodNotImplemented Value: 0x80041055 An attempt was made to execute a method not marked with [implemented] in any relevant class. |
wbemErrMethodDisabled Value: 0x80041056 An attempt was made to execute a method marked with [disabled]. |
wbemErrRefresherBusy Value: 0x80041057 The refresher is busy with another operation. |
wbemErrUnparsableQuery Value: 0x80041058 The filtering query is syntactically not valid. |
wbemErrNotEventClass Value: 0x80041059 The FROM clause of a filtering query references a class that is not an event class (not derived from __Event). |
wbemErrMissingGroupWithin Value: 0x8004105a A GROUP BY clause was used without the corresponding GROUP WITHIN clause. |
wbemErrMissingAggregationList Value: 0x8004105b A GROUP BY clause was used. Aggregation on all properties is not supported. |
wbemErrPropertyNotAnObject Value: 0x8004105c Dot notation was used on a property that is not an embedded object. |
wbemErrAggregatingByObject Value: 0x8004105d A GROUP BY clause references a property that is an embedded object without using dot notation. |
wbemErrUninterpretableProviderQuery Value: 0x8004105f An event provider registration query (__EventProviderRegistration) did not specify the classes for which events were provided. |
wbemErrBackupRestoreWinmgmtRunning Value: 0x80041060 An request was made to back up or restore the repository while WMI was using it. |
wbemErrQueueOverflow Value: 0x80041061 The asynchronous delivery queue overflowed due to the event consumer being too slow. |
wbemErrPrivilegeNotHeld Value: 0x80041062 The operation failed because the client did not have the necessary security privilege. |
wbemErrInvalidOperator Value: 0x80041063 The operator is not valid for this property type. |
wbemErrLocalCredentials Value: 0x80041064 The user specified a username, password or authority for a local connection. The user must use a blank username/password and rely on default security. |
wbemErrCannotBeAbstract Value: 0x80041065 The class was made abstract when its parent class is not abstract. |
wbemErrAmendedObject Value: 0x80041066 An amended object was put without the wbemFlagUseAmendedQualifiers flag being specified. |
wbemErrClientTooSlow Value: 0x80041067 The client was not retrieving objects quickly enough from an enumeration. This constant is returned when a client creates an enumeration object but does not retrieve objects from the enumerator in a timely fashion, causing the enumerator's object caches to get backed up. |
wbemErrNullSecurityDescriptor Value: 0x80041068 A null security descriptor was used. |
wbemErrTimeout Value: 0x80041069 The operation timed out. |
wbemErrInvalidAssociation Value: 0x8004106a The association being used is not valid. |
wbemErrAmbiguousOperation Value: 0x8004106b The operation was ambiguous. |
wbemErrQuotaViolation Value: 0x8004106c WMI is taking up too much memory. This could be caused either by low memory availability or excessive memory consumption by WMI. |
wbemErrTransactionConflict Value: 0x8004106d The operation resulted in a transaction conflict. |
wbemErrForcedRollback Value: 0x8004106e The transaction forced a rollback. |
wbemErrUnsupportedLocale Value: 0x8004106f The locale used in the call is not supported. |
wbemErrHandleOutOfDate Value: 0x80041070 The object handle is out of date. |
wbemErrConnectionFailed Value: 0x80041071 Indicates that the connection to the SQL database failed. |
wbemErrInvalidHandleRequest Value: 0x80041072 The handle request was not valid. |
wbemErrPropertyNameTooWide Value: 0x80041073 The property name contains more than 255 characters. |
wbemErrClassNameTooWide Value: 0x80041074 The class name contains more than 255 characters. |
wbemErrMethodNameTooWide Value: 0x80041075 The method name contains more than 255 characters. |
wbemErrQualifierNameTooWide Value: 0x80041076 The qualifier name contains more than 255 characters. |
wbemErrRerunCommand Value: 0x80041077 Indicates that an SQL command should be rerun because there is a deadlock in SQL. This can be returned only when data is being stored in an SQL database. |
wbemErrDatabaseVerMismatch Value: 0x80041078 The database version does not match the version that the repository driver processes. |
wbemErrVetoPut Value: 0x80041079 WMI cannot do the put operation because the provider does not allow it. |
wbemErrVetoDelete Value: 0x8004107a WMI cannot do the delete operation because the provider does not allow it. |
wbemErrInvalidLocale Value: 0x80041080 The specified locale identifier was not valid for the operation. |
wbemErrProviderSuspended Value: 0x80041081 The provider is suspended. |
wbemErrSynchronizationRequired Value: 0x80041082 The object must be committed and retrieved again before the requested operation can succeed. This constant is returned when an object must be committed and re-retrieved to see the property value. |
wbemErrNoSchema Value: 0x80041083 The operation cannot be completed because no schema is available. |
wbemErrProviderAlreadyRegistered Value: 0x80041084 The provider registration cannot be done because the provider is already registered. |
wbemErrProviderNotRegistered Value: 0x80041085 The provider for the requested data is not registered. |
wbemErrFatalTransportError Value: 0x80041086 A fatal transport error occurred and other transport will not be attempted. |
wbemErrEncryptedConnectionRequired Value: 0x80041087 The client connection to WINMGMT must be encrypted for this operation. The IWbemServices proxy security settings should be adjusted and the operation retried. |
wbemErrRegistrationTooBroad Value: 0x80042001 The provider registration overlaps with the system event domain. |
wbemErrRegistrationTooPrecise Value: 0x80042002 A WITHIN clause was not used in this query. |
wbemErrTimedout Value: 0x80043001 Automation-specific error. |
wbemErrResetToDefault Value: 0x80043002 The user deleted an override default value for the current class. The default value for this property in the parent class has been reactivated. An automation-specific error. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Header | wbemdisp.h |