Skip to content

Latest commit

 

History

History
87 lines (66 loc) · 3.49 KB

nf-mi-mi_serializer_serializeclass.md

File metadata and controls

87 lines (66 loc) · 3.49 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_Serializer_SerializeClass
MI_Serializer_SerializeClass function (mi.h)
Serializes an MI_Class into a buffer in the format specified when the serializer was created. Options can be passed into the flags to control if the class and all its parent classes are serialized, or just the child-most class.
MI_Serializer_SerializeClass
MI_Serializer_SerializeClass function [Windows Management Infrastructure (MI)]
mi/MI_Serializer_SerializeClass
wmi_v2.mi_serializer_serializeclass
wmi_v2\mi_serializer_serializeclass.htm
wmi_v2
3417731d-8727-4dcb-8ce4-2b07b6addd19
12/05/2018
MI_Serializer_SerializeClass, MI_Serializer_SerializeClass function [Windows Management Infrastructure (MI)], mi/MI_Serializer_SerializeClass, wmi_v2.mi_serializer_serializeclass
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_Serializer_SerializeClass
mi/MI_Serializer_SerializeClass
c++
APIRef
kbSyntax
HeaderDef
Mi.h
MI_Serializer_SerializeClass

MI_Serializer_SerializeClass function

-description

Serializes an MI_Class into a buffer in the format specified when the serializer was created. Options can be passed into the flags to control if the class and all its parent classes are serialized, or just the child-most class.

-parameters

-param serializer [in, out]

Serializer returned from MI_Application_NewSerializer.

-param flags

Must be either 0 or MI_SERIALIZER_FLAGS_CLASS_DEEP. 0 means only the child most part of the class will be serialized. MI_SERIALIZER_FLAGS_CLASS_DEEP means all properties in the class will be serialized.

-param classObject [in]

Class object to be serialized.

-param clientBuffer

The output buffer to receive the serialized class data. If this parameter is Null, the required length of the buffer is passed back in clientBufferNeeded.

-param clientBufferLength

Length of the clientBuffer passed in. If clientBuffer is Null, this parameter should be 0.

-param clientBufferNeeded [in, out]

Returned total length the buffer needs to be. If a buffer is passed in (via the clientBuffer parameter) that is the required size or more, this value will indicate how much buffer was used. If a buffer was not passed in (where the clientBuffer value is Null) or the buffer is too small to hold the serialized class, this value will indicate how much space is needed to hold the serialized class.

-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_Application_NewSerializer