Microsoft Windows CE 3.0  

CMediaControl::GetIDsOfNames

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Maps a single member function and an optional set of parameters to a corresponding set of integer dispatch identifiers (DISPIDs), which can be used upon subsequent calls to the CMediaControl::Invokemember function.

HRESULT
GetIDsOfNames(
REFIID
riid
,
OLECHAR
**
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgdispid
);

Parameters

riid
Reference identifier. Reserved for future use. Must be NULL.
rgszNames
Passed-in array of names to be mapped.
cNames
Count of the names to be mapped.
lcid
Locale context in which to interpret the names.
rgdispid
Caller-allocated array, each element of which contains an ID corresponding to one of the names passed in the rgszNamesarray. The first element represents the member name; the subsequent elements represent each of the member's parameters.

Return Values

Returns one of the following values.

DISP_E_UNKNOWN_CLSID The CLSID was not recognized.
DISP_E_UNKNOWNNAME One or more of the names were not known. The returned DISPIDs contain DISPID_UNKNOWN for each entry that corresponds to an unknown name.
E_OUTOFMEMORY Out of memory.
S_OK Success.