tags:

views:

64

answers:

1

Is it possible to know if a given DISPID (result of GetIDsOfNames) is either a method, a property getter or setter ?

+2  A: 

You can tell this by obtaining the INVOKEKIND enumeration for the DISPID. Take a look at ITypeInfo::GetFuncDesc. For an example how to do this check out the implementation of the ATL function AtlGetFuncInfoFromId.

Stephen Nutt