Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining

/ms_union switch

The /ms_union switch controls the NDR alignment of nonencapsulated unions.

Note  This attribute is provided for backwards compatibility. It is not recommended for use in a new interface.

midl /ms_union

Switch Options

This switch has no parameters.


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.


midl /ms_union file.idl

See also

General MIDL Command-line Syntax
Interface Definition (IDL) File



Community Additions

© 2015 Microsoft