SMI Error and Success Constants
If an error occurs, SMI can return one of the following error codes as an HRESULT value. The constants that begin with "WCM_S_" are success constants, and the constants that begin with "WCM_E_" are error constants.
Note
Some SMI APIs can return system error codes. The HRESULT values that begin with "WCM_S_" are not returned from an SMI API. They may only appear embedded in an object that implements ISettingsResult interface.
-
WCM_E_INTERNALERROR
-
-
_HRESULT_TYPEDEF_(0x80220000L)
-
Unspecified internal error in the state engine.
-
-
WCM_E_STATENODENOTFOUND
-
-
_HRESULT_TYPEDEF_(0x80220001L)
-
State node is not found.
-
-
WCM_E_STATENODENOTALLOWED
-
-
_HRESULT_TYPEDEF_(0x80220002L)
-
State node is not allowed.
-
-
WCM_E_ATTRIBUTENOTFOUND
-
-
_HRESULT_TYPEDEF_(0x80220003L)
-
Attribute is not found.
-
-
WCM_E_ATTRIBUTENOTALLOWED
-
-
_HRESULT_TYPEDEF_(0x80220004L)
-
Attribute is not allowed.
-
-
WCM_E_INVALIDVALUE
-
-
_HRESULT_TYPEDEF_(0x80220005L)
-
Value is invalid.
-
-
WCM_E_INVALIDVALUEFORMAT
-
-
_HRESULT_TYPEDEF_(0x80220006L)
-
Value is in invalid format.
-
-
WCM_E_TYPENOTSPECIFIED
-
-
_HRESULT_TYPEDEF_(0x80220007L)
-
XSD type is missing in metadata.
-
-
WCM_E_INVALIDDATATYPE
-
-
_HRESULT_TYPEDEF_(0x80220008L)
-
Data type is unexpected or existing data does not match the type.
-
-
WCM_E_NOTPOSITIONED
-
-
_HRESULT_TYPEDEF_(0x80220009L)
-
Enumerator is not positioned.
-
-
WCM_E_READONLYITEM
-
-
_HRESULT_TYPEDEF_(0x8022000AL)
-
Cannot update a read-only setting or attribute.
-
-
WCM_E_INVALIDPATH
-
-
_HRESULT_TYPEDEF_(0x8022000BL)
-
Name or path of a state node is in invalid format.
-
-
WCM_E_WRONGESCAPESTRING
-
-
_HRESULT_TYPEDEF_(0x8022000CL)
-
Wrong XML escape sequence in string.
-
-
WCM_E_INVALIDVERSIONFORMAT
-
-
_HRESULT_TYPEDEF_(0x8022000DL)
-
Invalid version format.
-
-
WCM_E_INVALIDLANGUAGEFORMAT
-
-
_HRESULT_TYPEDEF_(0x8022000EL)
-
Invalid language string format.
-
-
WCM_E_KEYNOTCHANGEABLE
-
-
_HRESULT_TYPEDEF_(0x8022000FL)
-
Not allowed to change value in a key member.
-
-
WCM_E_EXPRESSIONNOTFOUND
-
-
_HRESULT_TYPEDEF_(0x80220010L)
-
Expression is not defined.
-
-
WCM_E_SUBSTITUTIONNOTFOUND
-
-
_HRESULT_TYPEDEF_(0x80220011L)
-
Substitution is not defined.
-
-
WCM_E_USERALREADYREGISTERED
-
-
_HRESULT_TYPEDEF_(0x80220012L)
-
User is already registered.
-
-
WCM_E_USERNOTFOUND
-
-
_HRESULT_TYPEDEF_(0x80220013L)
-
User is not registered.
-
-
WCM_E_NAMESPACENOTFOUND
-
-
_HRESULT_TYPEDEF_(0x80220014L)
-
Namespace is not registered.
-
-
WCM_E_NAMESPACEALREADYREGISTERED
-
-
_HRESULT_TYPEDEF_(0x80220015L)
-
Namespace is already registered.
-
-
WCM_E_STORECORRUPTED
-
-
_HRESULT_TYPEDEF_(0x80220016L)
-
State store is in corrupted state.
-
-
WCM_E_INVALIDEXPRESSIONSYNTAX
-
-
_HRESULT_TYPEDEF_(0x80220017L)
-
Expression format is invalid.
-
-
WCM_E_NOTIFICATIONNOTFOUND
-
-
_HRESULT_TYPEDEF_(0x80220018L)
-
No matching Notification found.
-
-
WCM_E_CONFLICTINGASSERTION
-
-
_HRESULT_TYPEDEF_(0x80220019L)
-
New restriction is conflicting with existing restriction.
-
-
WCM_E_ASSERTIONFAILED
-
-
_HRESULT_TYPEDEF_(0x8022001AL)
-
Assertion Validation failed.
-
-
WCM_E_DUPLICATENAME
-
-
_HRESULT_TYPEDEF_(0x8022001BL)
-
Name already exists.
-
-
WCM_E_INVALIDKEY
-
-
_HRESULT_TYPEDEF_(0x8022001CL)
-
Member referenced by the key does not match the complexType definition.
-
-
WCM_E_INVALIDSTREAM
-
-
_HRESULT_TYPEDEF_(0x8022001DL)
-
Tried to load invalid data from stream.
-
-
WCM_E_HANDLERNOTFOUND
-
-
_HRESULT_TYPEDEF_(0x8022001EL)
-
Handler is not defined.
-
-
WCM_E_INVALIDHANDLERSYNTAX
-
-
_HRESULT_TYPEDEF_(0x8022001FL)
-
Handler attribute is of invalid syntax.
-
-
WCM_E_VALIDATIONFAILED
-
-
_HRESULT_TYPEDEF_(0x80220020L)
-
Validation of metadata failed.
-
-
WCM_E_RESTRICTIONFAILED
-
-
_HRESULT_TYPEDEF_(0x80220021L)
-
Invalid setting value on restriction.
-
-
WCM_E_CYCLICREFERENCE
-
-
_HRESULT_TYPEDEF_(0x80220023L)
-
Cyclic reference detected.
-
-
WCM_E_MIXTYPEASSERTION
-
-
_HRESULT_TYPEDEF_(0x80220024L)
-
Assertions using shared and per-user settings are not supported.
-
-
WCM_E_NOTSUPPORTEDFUNCTION
-
-
_HRESULT_TYPEDEF_(0x80220025L)
-
Not supported function is found.
-
-
WCM_E_VALUETOOBIG
-
-
_HRESULT_TYPEDEF_(0x80220026L)
-
A value is too big to process.
-
-
WCM_E_INVALIDATTRIBUTECOMBINATION
-
-
_HRESULT_TYPEDEF_(0x80220027L)
-
Invalid attribute combination.
-
-
WCM_E_ABORTOPERATION
-
-
_HRESULT_TYPEDEF_(0x80220028L)
-
Current operation should be aborted.
-
-
WCM_E_MISSINGCONFIGURATION
-
-
_HRESULT_TYPEDEF_(0x80220029L)
-
CONFIGURATION and or related tags are missing.
-
-
WCM_E_INVALIDPROCESSORFORMAT
-
-
_HRESULT_TYPEDEF_(0x8022002AL)
-
The processor architecture attribute has an invalid value.
-
-
WCM_E_SOURCEMANEMPTYVALUE
-
-
_HRESULT_TYPEDEF_(0x8022002BL)
-
The source manifest has empty value.
-
-
WCM_E_UNKNOWNRESULT
-
-
_HRESULT_TYPEDEF_(0x80221003L)
-
Unknown result.
-
-
WCM_S_INTERNALERROR
-
-
_HRESULT_TYPEDEF_(0x00221000L)
-
Unspecified internal warning in the state engine.
-
-
WCM_S_ATTRIBUTENOTFOUND
-
-
_HRESULT_TYPEDEF_(0x00221001L)
-
Attribute not found.
-
-
WCM_S_LEGACYSETTINGWARNING
-
-
_HRESULT_TYPEDEF_(0x00221002L)
-
Legacy setting usage for this case may have unpredictable results.
-
-
WCM_S_INVALIDATTRIBUTECOMBINATION
-
-
_HRESULT_TYPEDEF_(0x00221004L)
-
Invalid attribute combination.
-
-
WCM_S_ATTRIBUTENOTALLOWED
-
-
_HRESULT_TYPEDEF_(0x00221005L)
-
Attribute is not allowed.
-
-
WCM_S_NAMESPACENOTFOUND
-
-
_HRESULT_TYPEDEF_(0x00221006L)
-
Namespace is not found.
-
Requirements
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|