Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

MI_Application_NewDeserializer function

Creates a deserializer object that can then be used to convert a serialized object back into a class or instance.

Syntax


 MI_INLINE MI_Result MI_Application_NewDeserializer(
  _Inout_ MI_Application  *application,
          MI_Uint32       flags,
  _In_    MI_Char         *format,
  _Out_   MI_Deserializer *deserializer
);

Parameters

application [in, out]

Handle returned from MI_Application_Initialize.

flags

Must be 0.

format [in]

A string that indicates which serializer to use. Must be L"MI_XML".

deserializer [out]

The populated deserializer object.

Return value

Return codeDescription
MI_RESULT_OK

The operation succeeded.

MI_RESULT_SERVER_LIMITS_EXCEEDED

There is not enough memory to complete the request.

MI_RESULT_INVALID_PARAMETER

One or more parameters passed to the function were not valid.

MI_RESULT_FAILED

A failure not covered by other MI_Result error codes.

 

Remarks

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

Header

Mi.h

 

 

Show:
© 2015 Microsoft