ms_union

[..., ms_union, ...] interface-name { ...}

interface-name

Specifies the name of the interface.

 

Example

[ms_union] long procedure (...);

 

Remarks

The keyword ms_union is used to control the NDR alignment of nonencapsulated unions.

The MIDL compiler in this version of Microsoft RPC 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 an IDL interface attribute, an IDL type attribute, or as a command-line switch (/ms_union).

See Also

IDL, /ms_union