hidden attribute

The [hidden] attribute indicates that the item exists but should not be displayed in a user-oriented browser.

[
    other-attributes, 
    hidden
] 
element element-name
{
    definitions
}

[other-attributes, hidden] function-type function-name(optional-parameter-list);

Parameters

other-attributes

Zero or more optional MIDL attributes.

element

One of the following directives: coclass, dispinterface, interface, or library.

element-name

The name that other software components can use to delineate the current element.

definitions

Specifies statements that make up the element definition.

function-type

Return type of the function.

function-name

Name used for invoking the function.

optional-parameter-list

Zero or more function parameters.

Remarks

The [hidden] attribute allows you to remove members from your interface (by shielding them from further use) while maintaining compatibility with existing code. You can use the [hidden] attribute on properties, methods, and the coclass, dispinterface, interface, and library statements.

When specified for a library, the [hidden] attribute prevents the entire library from being displayed. This usage is intended for use with controls. Hosts need to create a new type library that wraps the control with extended properties.

Flags

VARFLAG_FHIDDEN, FUNCFLAG_FHIDDEN, TYPEFLAG_FHIDDEN

Examples

[hidden, vararg] SAFEARRAY (int) SecretFunc(
    [in, out] SAFEARRAY (variant) *varP) ;

[
    uuid(1e196b20-1f3c-1069-996b-00dd010fe676), 
    hidden, 
    version (3.0)
] 
library HiddenLib 
{
    /* Library definition statements here. */
};

See also

TYPEFLAGS

dispinterface

coclass

Generating a Type Library With MIDL

interface

library

ODL File Syntax

ODL File Example