_ATL_FUNC_INFO

The _ATL_FUNC_INFO structure has the following form:

struct _ATL_FUNC_INFO
{
   CALLCONV cc;
   VARTYPE vtReturn;
   SHORT nParams;
   VARTYPE pVarTypes[_ATL_MAX_VARTYPES];
};

The _ATL_FUNC_INFO structure contains type information used to describe a method or property on a dispinterface. Internally, ATL uses this structure to hold information obtained from a type library. You may need to manipulate this structure directly if you provide type information for an event handler used with the IDispEventSimpleImpl class and SINK_ENTRY_INFO macro.

Members

cc

The calling convention. When using this structure with the IDispEventSimpleImpl class this member must be CC_STDCALL.

vtReturn

The variant type of the function return value.

nParams

The number of function parameters.

pVarTypes

An array of variant types of the function parameters.

Example

Given a dispinterface method defined in IDL like this:

void SomeFunction([in] long Number, [in] BSTR String);

You would define an _ATL_FUNC_INFO structure like this:

_ATL_FUNC_INFO info = {CC_STDCALL, VT_EMPTY, 2, {VT_I4, VT_BSTR} };

See Also

IDispEventSimpleImpl, SINK_ENTRY_INFO, VARTYPE