Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

local (C++)

When used in the interface header, allows you to use the MIDL compiler as a header generator. When used in an individual function, designates a local procedure for which no stubs are generated.


The local C++ attribute has the same functionality as the local MIDL attribute.

See call_as for an example of how to use local.

Attribute Context

Applies to

interface, interface method



Required attributes


Invalid attributes


For more information, see Attribute Contexts.

Community Additions

© 2015 Microsoft