Skip to main content
MI_Utilities_MapErrorToMiErrorCategory function

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

Syntax


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

Parameters

errorType

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

ValueMeaning
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

MI_ErrorCategory structure that indicates the category of error.

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

See also

MI_ErrorCategory