Skip to content

Latest commit

 

History

History
119 lines (76 loc) · 2.8 KB

nf-mi-mi_instance_getelement.md

File metadata and controls

119 lines (76 loc) · 2.8 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_Instance_GetElement
MI_Instance_GetElement function (mi.h)
Gets the value of the named element (CIM property).
MI_FLAG_IN
MI_FLAG_KEY
MI_FLAG_NULL
MI_FLAG_OUT
MI_Instance_GetElement
MI_Instance_GetElement function [Windows Management Infrastructure (MI)]
mi/MI_Instance_GetElement
wmi_v2.mi_instance_getelement
wmi_v2\mi_instance_getelement.htm
wmi_v2
1e366cc5-0fb9-41c9-961c-07b076a18529
12/05/2018
MI_FLAG_IN, MI_FLAG_KEY, MI_FLAG_NULL, MI_FLAG_OUT, MI_Instance_GetElement, MI_Instance_GetElement function [Windows Management Infrastructure (MI)], mi/MI_Instance_GetElement, wmi_v2.mi_instance_getelement
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_Instance_GetElement
mi/MI_Instance_GetElement
c++
APIRef
kbSyntax
HeaderDef
Mi.h
MI_Instance_GetElement

MI_Instance_GetElement function

-description

Gets the value of the named element (CIM property).

-parameters

-param self [in]

Instance whose element value will be returned.

-param name

A null-terminated string that represents the name of the element.

-param value [out, optional]

Returned element value.

-param type [out, optional]

Returned element value type.

-param flags [out, optional]

Returned combination of the following values.

MI_FLAG_NULL (0x20000000)

Element value is Null.

MI_FLAG_KEY (0x0001000)

Element is a key.

MI_FLAG_IN (0x0002000)

The parameter is of type In and is passed into a method.

MI_FLAG_OUT (0x0004000)

The parameter is of type Out and is returned from a method.

-param index [out, optional]

Returned zero-based index of the element.

-returns

A value of the MI_Result enumeration that specifies the function return code. This can be one of the following codes.

-see-also

MI_Instance_AddElement

MI_Instance_ClearElement

MI_Instance_SetElement