Upravit

Sdílet prostřednictvím


proxy attribute

The [proxy] attribute prevents Automation from registering as a proxy/stub handler for a dual interface.

[ 
    proxy, 
    uuid(string-uuid <>)
    [ , interface-attribute-list <>] 
] 
interface interface-name <> : base-interface <>
{
    ...
}

Parameters

string-uuid

Specifies a string consisting of 8 hexadecimal digits followed by a hyphen, then three groups of 4 hexadecimal digits each followed by a hyphen, then 12 hexadecimal digits. You can enclose the UUID string in quotes, except when you use the MIDL compiler switch /osf.

interface-attribute-list

Specifies a list of zero or more IDL attributes that apply to the interface as a whole. When two or more interface attributes are present, they must be separated by commas.

interface-name

Name of the interface.

base-interface

Specifies the name of an interface from which this derived interface inherits member functions, status codes, and interface attributes. The derived interface does not inherit type definitions. To do this, use the import keyword to import the IDL file of the base interface.

Remarks

Using the [ proxy] attribute for a dual interface prevents the TLB from taking over generated stubs. If this attribute is specified, the typelib proxy should not be unregistered when the typelib is unregistered.

Flags

TYPEFLAG_PROXY

Interfaces can be marked with the TYPEFLAG_PROXY flag to indicate they will be using a proxy/stub dynamic link library. This flag specifies the typelib proxy should not be unregistered when the typelib is unregistered.

See also

Generating a Type Library with MIDL

dual

TYPEFLAGS