Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serialize COM variant to BLOB or IStream

Tags:

com

winapi

Is there a standard way to serialize and deserialize a COM VARIANT, e.g. to/from a stream?

Haven't found any in MSDN, an I'm a little surprised now.

like image 590
peterchen Avatar asked Apr 09 '14 10:04

peterchen


1 Answers

You can do this using the the VARIANT_UserMarshal function.

General information on this function (and similar ones for other OLE Automation types) is available here: Marshaling OLE Data Types and here: The type_UserMarshal Function

like image 170
Simon Mourier Avatar answered Oct 17 '22 11:10

Simon Mourier