Miral asks for the recommended way of passing messages across processes if they require custom marshaling.
There is no one recommended way of doing the custom marshaling, although some are hackier than others.
Probably the most architecturally beautiful way of doing it is to use a mechanism that does perform automatic marshaling, like COM ...