[ interface-attribute-list ] interface interface-name [ : base-interface ]
/*IDL file typedef syntax */
typedef interface interface-name declarator-list
/* use of interface keyword in IDL file for an RPC interface */
[ uuid (00000000-0000-0000-0000-000000000000),
version (1.0) ]
interface remote_if_2
{
}
/* use of interface keyword in ACF for an RPC interface */
[ implicit_handle( handle_t xa_bhandle ) ]
interface remote_if_2
{
}
/* use of interface keyword in IDL file for an OLE interface */
[ object, uuid (00000000-0000-0000-0000-000000000000) ]
interface IDerivedInterface : IBaseInterface
{
import "base.idl"
Save();
}
/* use of interface keyword to define an interface pointer type */
typedef interface IStorage *LPSTORAGE;
The interface keyword specifies the name of the interface. The interface name must be provided in both the IDL file and the ACF.
The interface names in the IDL file and ACF must be the same, except when you use the MIDL compiler switch /acf. For more information, see /acf.
The interface name forms the first part of the name of interface-handle data structures that are parameters to the RPC run-time functions. For more information, see RPC_IF_HANDLE.
If the interface header includes the object attribute to indicate an OLE interface, it must also include the uuid attribute and must specify the base OLE interface from which it is derived. For more information about OLE interfaces, see object.
You can also use the interface keyword with the typedef keyword to define an interface data type.
ACF, endpoint, IDL, local, pointer_default, uuid, version