ITypeInfo::GetNames

(memid, rgbstrNames, cNameMax, lpcName)
MEMBERID memid
BSTR FAR* rgbstrNames
unsigned int cNameMax
unsigned int FAR* lpcName

Retrieves the variable with the specified member ID, or the name of the property or method and its parameters, corresponding to the specified function ID.

Parameters

memid

ID of member whose name (or names) is to be returned.

rgbstrNames

Pointer to caller-allocated array. On return, each of these lpcName elements is filled in to point to a BSTR containing the name (or names) associated with the member.

cNameMax

Length of the passed-in rgbstrNames array.

lpcName

On return, points to number representing the number of names in rgbstrNames array.

Return Value

The SCODE obtained from the returned HRESULT is one of the following:

SCODE
Meaning
S_OK
Success.
E_OUTOFMEMORY
Out of memory.
E_INVALIDARG
One or more of the arguments is invalid.
TYPE_E_IOERROR
The function could not read from the file.
TYPE_E_INVDATAREAD
The function could not read from the file.
TYPE_E_UNSUPFORMAT
The type library has an old format.
TYPE_E_INVALIDSTATE
The type library could not be opened.
TYPE_E_WRONGTYPEKIND
Type mismatch.
TYPE_E_ELEMENTNOTFOUND
The element was not found.

Comments

The caller must release the returned BSTR array.

If the member ID identifies a property that is implemented with property functions, the property name is returned.

For property get functions, the names of the function and its parameters are always returned.

For property put and put reference functions, the right side of the assignment is unnamed. If cNameMax is less than is required to return all the names of parameters of a function, then only the names of the first cNameMax pics/OLE00090001.gif 1 parameters are returned. The names of the parameters are returned in the array in the same order they appear elsewhere in the interface, for example, in the same order they appear in the parameter array associated with the FUNCDESC.

If the type description inherits from another type description, this function recurses on the base type description, if necessary, to find the item with the requested member ID.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database