readonly

[readonly [, optional-attributes]data-type identifier

Example

HRESULT Method3([in, readonly] int iMmutable);
 

Remarks

The readonly attribute prohibits assignment to a variable.

Flags

VARFLAG_FREADONLY

See Also

TYPEFLAGS, ODL File Syntax, ODL File Example, Generating a Type Library With MIDL, Differences Between MIDL and MKTYPLIB