MI_Result enumeration (mi.h)
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_OK Value: 0 The operation was successful. |
MI_RESULT_FAILED Value: 1 A general error occurred, not covered by a more specific error code. |
MI_RESULT_ACCESS_DENIED Value: 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_NAMESPACE Value: 3 The target namespace does not exist. |
MI_RESULT_INVALID_PARAMETER Value: 4 One or more parameter values passed to the method are not valid. |
MI_RESULT_INVALID_CLASS Value: 5 The specified class does not exist. |
MI_RESULT_NOT_FOUND Value: 6 The requested object cannot be found. |
MI_RESULT_NOT_SUPPORTED Value: 7 The requested operation is not supported. |
MI_RESULT_CLASS_HAS_CHILDREN Value: 8 The operation cannot be invoked because the class has subclasses. |
MI_RESULT_CLASS_HAS_INSTANCES Value: 9 The operation cannot be invoked because the class has instances. |
MI_RESULT_INVALID_SUPERCLASS Value: 10 The operation cannot be invoked because the superclass does not exist. |
MI_RESULT_ALREADY_EXISTS Value: 11 The operation cannot be invoked because an object already exists. |
MI_RESULT_NO_SUCH_PROPERTY Value: 12 The specified property does not exist. |
MI_RESULT_TYPE_MISMATCH Value: 13 The value supplied is not compatible with the type. |
MI_RESULT_QUERY_LANGUAGE_NOT_SUPPORTED Value: 14 The query language is not recognized or supported. |
MI_RESULT_INVALID_QUERY Value: 15 The query is not valid for the specified query language. |
MI_RESULT_METHOD_NOT_AVAILABLE Value: 16 The extrinsic method cannot be invoked. |
MI_RESULT_METHOD_NOT_FOUND Value: 17 The specified extrinsic method does not exist. |
MI_RESULT_NAMESPACE_NOT_EMPTY Value: 20 The specified namespace is not empty. |
MI_RESULT_INVALID_ENUMERATION_CONTEXT Value: 21 The enumeration identified by the specified context is not valid. |
MI_RESULT_INVALID_OPERATION_TIMEOUT Value: 22 The specified operation time-out is not supported by the CIM Server. |
MI_RESULT_PULL_HAS_BEEN_ABANDONED Value: 23 The pull operation has been abandoned. |
MI_RESULT_PULL_CANNOT_BE_ABANDONED Value: 24 The attempt to abandon a concurrent pull operation failed. |
MI_RESULT_FILTERED_ENUMERATION_NOT_SUPPORTED Value: 25 Using a filter in the enumeration is not supported by the CIM server. |
MI_RESULT_CONTINUATION_ON_ERROR_NOT_SUPPORTED Value: 26 The CIM server does not support continuation on error. |
MI_RESULT_SERVER_LIMITS_EXCEEDED Value: 27 The operation failed because server limits were exceeded. |
MI_RESULT_SERVER_IS_SHUTTING_DOWN Value: 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 |