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.
Value Meaning - 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 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps only] |
|
Redistributable | Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2 |
|
Header |
|
See also
Build date: 12/6/2012