MI_Application_NewSerializer function (mi.h)

Retrieves a serializer object that can then be used to serialize instances and classes into various different formats.


MI_INLINE MI_Result MI_Application_NewSerializer(
  [in, out] MI_Application *application,
            MI_Uint32      flags,
  [in]      MI_Char        *format,
  [out]     MI_Serializer  *serializer


[in, out] application

A pointer to a handle returned from the MI_Application_Initialize function.


This parameter must be 0.

[in] format

A string that contains which serializer to use. This parameter must be L"MI_XML".

[out] serializer

The returned serializer object.

Return value

This function returns MI_INLINE MI_Result.


Serializers are used to persist MI_Instance and MI_Class objects. A deserializer is then used to re-create the object from its stored form.


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