Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 2.02 KB

atl-func-info-structure.md

File metadata and controls

60 lines (41 loc) · 2.02 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: _ATL_FUNC_INFO Structure
_ATL_FUNC_INFO Structure
11/04/2016
_ATL_FUNC_INFO
ATL::_ATL_FUNC_INFO
ATL._ATL_FUNC_INFO
_ATL_FUNC_INFO structure
ATL_FUNC_INFO structure
441ebe2c-f971-47de-9f52-a258e8d6f88e

_ATL_FUNC_INFO Structure

Contains type information used to describe a method or property on a dispinterface.

Syntax

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

Members

cc
The calling convention. When using this structure with the IDispEventSimpleImpl class, this member must be CC_STDCALL. CC_CDECL is the only option supported in Windows CE for the CALLCONV field of the _ATL_FUNC_INFO structure. Any other value is unsupported thus its behavior undefined.

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.

Remarks

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.

Example

Given a dispinterface method defined in IDL:

[!code-cppNVC_ATL_Windowing#139]

you would define an _ATL_FUNC_INFO structure:

[!code-cppNVC_ATL_Windowing#140]

Requirements

Header: atlcom.h

See also

Classes and structs
IDispEventSimpleImpl Class
SINK_ENTRY_INFO