/ms_union switch
The /ms_union switch controls the NDR alignment of nonencapsulated unions.
midl /ms_union
Switch Options
This switch has no parameters.
Remarks
The MIDL compiler mirrors the behavior of the OSF-DCE IDL compiler for nonencapsulated unions. However, because earlier versions of the MIDL compiler did not do so, the /ms_union switch provides compatibility with interfaces built on previous versions of the MIDL compiler.
The ms_union feature can be used as a command-line switch (/ms_union), an IDL interface attribute, or as an IDL-type attribute.
Examples
midl /ms_union file.idl
See also