entry attribute
The [entry] attribute specifies an exported function or constant in a module by identifying the entry point in the DLL.
[
uuid(uuid-number),
entry(entry-id)
[, optional-attribute-list]
]
module modulename
{
elementlist
};
Parameters
-
uuid-number
-
Specifies a universally unique identification number for the module.
-
entry-id
-
Specifies the module entry point function name or integer identification number.
-
optional-attribute-list
-
Specifies zero or more attributes for the MIDL compiler to apply to the module.
-
modulename
-
Specifies the name other software components use to denote the module.
-
elementlist
-
Specifies one or more module element definition statements.
Remarks
If the entryid variable of the [entry] attribute is a string, this is a named entry point. If entryid is a number, the entry point is defined by an ordinal. This attribute provides a way to obtain the address of a function in a module.
Examples
[
dllname("MyAppsFirst.dll")
]
module MyModule
{
[entry(20), bindable, requestedit,
propputref, defaultbind ] HRESULT Func1(
[in]IUnknown * Param1,
[out] MyType * Param2);
[entry("TwentyOne"), hidden, vararg] SAFEARRAY (int) Func2(
[in, out] SAFEARRAY (variant) *varP) ;
[entry(22)] Float Func3(
[in] lpstr pName, [in] double dLevel,
[out] short * sByte) ;
} ;
See also