Marshalling nested structs to C#
问题 We have COM Server (as dll, we have only dll file), that implements two COM interfaces. One of interfaces allows us to get messages (as structure) from some device. Depending on message we need to process corresponding structure. Every structure is pointer to a structure VARIANT . This structure is of type byte array (VT_ARRAY | VT_UI1) . All structures contains structure Header and some other information. Structure Header contains field MsgId . Depending on MsgId we need to process other