MI_Context_PostCimError function (mi.h)
Posts a return code and an error message (in the form of a CIM_Error object) to the server in response to a request.
Syntax
MI_INLINE MI_Result MI_INLINE_CALL MI_Context_PostCimError(
[in] MI_Context *context,
[in] const MI_Instance *error
);
Parameters
[in] context
A pointer to the request context.
[in] error
A pointer to a CIM_Error object to be posted to the server.
Return value
This function returns MI_INLINE MI_Result MI_INLINE_CALL.
Remarks
The CIM_Error instance that is returned in the error parameter can be compiled into your provider so you can initialize and then post it. Once an error has been posted, the context must not be used, as it becomes invalid at this point.
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 |