Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines function return codes.
Syntax
typedef enum _MI_Result {
MI_RESULT_OK = 0,
MI_RESULT_FAILED = 1,
MI_RESULT_ACCESS_DENIED = 2,
MI_RESULT_INVALID_NAMESPACE = 3,
MI_RESULT_INVALID_PARAMETER = 4,
MI_RESULT_INVALID_CLASS = 5,
MI_RESULT_NOT_FOUND = 6,
MI_RESULT_NOT_SUPPORTED = 7,
MI_RESULT_CLASS_HAS_CHILDREN = 8,
MI_RESULT_CLASS_HAS_INSTANCES = 9,
MI_RESULT_INVALID_SUPERCLASS = 10,
MI_RESULT_ALREADY_EXISTS = 11,
MI_RESULT_NO_SUCH_PROPERTY = 12,
MI_RESULT_TYPE_MISMATCH = 13,
MI_RESULT_QUERY_LANGUAGE_NOT_SUPPORTED = 14,
MI_RESULT_INVALID_QUERY = 15,
MI_RESULT_METHOD_NOT_AVAILABLE = 16,
MI_RESULT_METHOD_NOT_FOUND = 17,
MI_RESULT_NAMESPACE_NOT_EMPTY = 20,
MI_RESULT_INVALID_ENUMERATION_CONTEXT = 21,
MI_RESULT_INVALID_OPERATION_TIMEOUT = 22,
MI_RESULT_PULL_HAS_BEEN_ABANDONED = 23,
MI_RESULT_PULL_CANNOT_BE_ABANDONED = 24,
MI_RESULT_FILTERED_ENUMERATION_NOT_SUPPORTED = 25,
MI_RESULT_CONTINUATION_ON_ERROR_NOT_SUPPORTED = 26,
MI_RESULT_SERVER_LIMITS_EXCEEDED = 27,
MI_RESULT_SERVER_IS_SHUTTING_DOWN = 28
} MI_Result;
Constants
MI_RESULT_OKValue: 0 The operation was successful. |
MI_RESULT_FAILEDValue: 1 A general error occurred, not covered by a more specific error code. |
MI_RESULT_ACCESS_DENIEDValue: 2 Access to a CIM resource is not available to the client. Reasons for this might be not having enough permissions to access the requested resources while carrying out the operation, or calling APIs with inconsistent identities. An example of the latter would be creating an MI_Session with one identity while trying to carry out an operation on the same session with a different identity. |
MI_RESULT_INVALID_NAMESPACEValue: 3 The target namespace does not exist. |
MI_RESULT_INVALID_PARAMETERValue: 4 One or more parameter values passed to the method are not valid. |
MI_RESULT_INVALID_CLASSValue: 5 The specified class does not exist. |
MI_RESULT_NOT_FOUNDValue: 6 The requested object cannot be found. |
MI_RESULT_NOT_SUPPORTEDValue: 7 The requested operation is not supported. |
MI_RESULT_CLASS_HAS_CHILDRENValue: 8 The operation cannot be invoked because the class has subclasses. |
MI_RESULT_CLASS_HAS_INSTANCESValue: 9 The operation cannot be invoked because the class has instances. |
MI_RESULT_INVALID_SUPERCLASSValue: 10 The operation cannot be invoked because the superclass does not exist. |
MI_RESULT_ALREADY_EXISTSValue: 11 The operation cannot be invoked because an object already exists. |
MI_RESULT_NO_SUCH_PROPERTYValue: 12 The specified property does not exist. |
MI_RESULT_TYPE_MISMATCHValue: 13 The value supplied is not compatible with the type. |
MI_RESULT_QUERY_LANGUAGE_NOT_SUPPORTEDValue: 14 The query language is not recognized or supported. |
MI_RESULT_INVALID_QUERYValue: 15 The query is not valid for the specified query language. |
MI_RESULT_METHOD_NOT_AVAILABLEValue: 16 The extrinsic method cannot be invoked. |
MI_RESULT_METHOD_NOT_FOUNDValue: 17 The specified extrinsic method does not exist. |
MI_RESULT_NAMESPACE_NOT_EMPTYValue: 20 The specified namespace is not empty. |
MI_RESULT_INVALID_ENUMERATION_CONTEXTValue: 21 The enumeration identified by the specified context is not valid. |
MI_RESULT_INVALID_OPERATION_TIMEOUTValue: 22 The specified operation time-out is not supported by the CIM Server. |
MI_RESULT_PULL_HAS_BEEN_ABANDONEDValue: 23 The pull operation has been abandoned. |
MI_RESULT_PULL_CANNOT_BE_ABANDONEDValue: 24 The attempt to abandon a concurrent pull operation failed. |
MI_RESULT_FILTERED_ENUMERATION_NOT_SUPPORTEDValue: 25 Using a filter in the enumeration is not supported by the CIM server. |
MI_RESULT_CONTINUATION_ON_ERROR_NOT_SUPPORTEDValue: 26 The CIM server does not support continuation on error. |
MI_RESULT_SERVER_LIMITS_EXCEEDEDValue: 27 The operation failed because server limits were exceeded. |
MI_RESULT_SERVER_IS_SHUTTING_DOWNValue: 28 The CIM server is shutting down and cannot process the operation. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 |
| Minimum supported server | Windows Server 2012 |
| Header | mi.h |
| Redistributable | Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2 |