1 out of 1 rated this helpful - Rate this topic

ITypeInfo::GetIDsOfNames method

Maps between member names and member IDs, and parameter names and parameter IDs.

Syntax


HRESULT GetIDsOfNames(
  [in, size_is(cNames)]   LPOLESTR *rgszNames,
  [in]                    UINT cNames,
  [out, size_is(cNames)]  MEMBERID *pMemId
);

Parameters

rgszNames [in]

An array of names to be mapped.

cNames [in]

The count of the names to be mapped.

pMemId [out]

Caller-allocated array in which name mappings are placed.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

One or more of the arguments is not valid.

E_OUTOFMEMORY

Insufficient memory to complete the operation.

 

Remarks

The function GetIDsOfNames maps the name of a member (rgszNames[0]) and its parameters (rgszNames[1] ...rgszNames[cNames- 1]) to the ID of the member (pMemId[0]), and to the IDs of the specified parameters (pMemId[1] ... pMemId[cNames- 1]). The IDs of parameters are 0 for the first parameter in the member function's argument list, 1 for the second, and so on.

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

Requirements

IDL

OaIdl.idl

See also

ITypeInfo

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.