Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 2.56 KB

nf-mi-mi_context_postcimerror.md

File metadata and controls

87 lines (63 loc) · 2.56 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mi.MI_Context_PostCimError
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.
MI_Context_PostCimError
MI_Context_PostCimError function [Windows Management Infrastructure (MI)]
mi/MI_Context_PostCimError
wmi.mi_postcimerror
wmi_v2.mi_context_postcimerror
wmi_v2\mi_context_postcimerror.htm
wmi_v2
96ef9e97-467b-4b71-a7f9-4f640102e744
12/05/2018
MI_Context_PostCimError, MI_Context_PostCimError function [Windows Management Infrastructure (MI)], mi/MI_Context_PostCimError, wmi.mi_postcimerror, wmi_v2.mi_context_postcimerror
mi.h
Windows
Windows 8
Windows Server 2012
Windows
Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2
19H1
MI_Context_PostCimError
mi/MI_Context_PostCimError
c++
APIRef
kbSyntax
HeaderDef
Mi.h
MI_Context_PostCimError

MI_Context_PostCimError function

-description

Posts a return code and an error message (in the form of a CIM_Error object) to the server in response to a request.

-parameters

-param context [in]

A pointer to the request context.

-param error [in]

A pointer to a CIM_Error object to be posted to the server.

-returns

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.

-see-also

CIM_Error

MI_Context

MI_Context_WriteCimError

MI_Instance