property or method by DISPID
Is it possib开发者_StackOverflow社区le to know if a given DISPID (result of GetIDsOfNames) is either a method, a property getter or setter ?
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
.
精彩评论