MI_Utilities_MapErrorToMiErrorCategory function (mi.h)

Maps an operating system specific error code to an error category.

Syntax

MI_INLINE MI_ErrorCategory MI_Utilities_MapErrorToMiErrorCategory(
  MI_Char   *errorType,
  MI_Uint32 error
);

Parameters

errorType

A null-terminated string representing an error type. Use one of these constants.

MI_RESULT_TYPE_MI

MI result type

MI_RESULT_TYPE_HRESULT

HRESULT (COM return type) result type

MI_RESULT_TYPE_WIN32

Win32 result type

error

Error code to map.

Return value

An MI_ErrorCategory structure that indicates the category of error.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
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

See also

MI_ErrorCategory