MI_Result enumeration

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

The operation was successful.

MI_RESULT_FAILED

A general error occurred, not covered by a more specific error code.

MI_RESULT_ACCESS_DENIED

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

The target namespace does not exist.

MI_RESULT_INVALID_PARAMETER

One or more parameter values passed to the method are not valid.

MI_RESULT_INVALID_CLASS

The specified class does not exist.

MI_RESULT_NOT_FOUND

The requested object cannot be found.

MI_RESULT_NOT_SUPPORTED

The requested operation is not supported.

MI_RESULT_CLASS_HAS_CHILDREN

The operation cannot be invoked because the class has subclasses.

MI_RESULT_CLASS_HAS_INSTANCES

The operation cannot be invoked because the class has instances.

MI_RESULT_INVALID_SUPERCLASS

The operation cannot be invoked because the superclass does not exist.

MI_RESULT_ALREADY_EXISTS

The operation cannot be invoked because an object already exists.

MI_RESULT_NO_SUCH_PROPERTY

The specified property does not exist.

MI_RESULT_TYPE_MISMATCH

The value supplied is not compatible with the type.

MI_RESULT_QUERY_LANGUAGE_NOT_SUPPORTED

The query language is not recognized or supported.

MI_RESULT_INVALID_QUERY

The query is not valid for the specified query language.

MI_RESULT_METHOD_NOT_AVAILABLE

The extrinsic method cannot be invoked.

MI_RESULT_METHOD_NOT_FOUND

The specified extrinsic method does not exist.

MI_RESULT_NAMESPACE_NOT_EMPTY

The specified namespace is not empty.

MI_RESULT_INVALID_ENUMERATION_CONTEXT

The enumeration identified by the specified context is not valid.

MI_RESULT_INVALID_OPERATION_TIMEOUT

The specified operation time-out is not supported by the CIM Server.

MI_RESULT_PULL_HAS_BEEN_ABANDONED

The pull operation has been abandoned.

MI_RESULT_PULL_CANNOT_BE_ABANDONED

The attempt to abandon a concurrent pull operation failed.

MI_RESULT_FILTERED_ENUMERATION_NOT_SUPPORTED

Using a filter in the enumeration is not supported by the CIM server.

MI_RESULT_CONTINUATION_ON_ERROR_NOT_SUPPORTED

The CIM server does not support continuation on error.

MI_RESULT_SERVER_LIMITS_EXCEEDED

The operation failed because server limits were exceeded.

MI_RESULT_SERVER_IS_SHUTTING_DOWN

The CIM server is shutting down and cannot process the operation.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

Header

Mi.h

 

 

Show:
© 2014 Microsoft