CMediaPosition.GetIDsOfNames method
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetIDsOfNames
method maps a set of names to a corresponding set of DISPIDs.
Syntax
HRESULT GetIDsOfNames(
REFIID riid,
OLECHAR **rgszNames,
UINT cNames,
LCID lcid,
DISPID *rgdispid
);
Parameters
-
riid
-
Reserved. Use IID_NULL.
-
rgszNames
-
Address of an array of wide-character strings that contain the names to be mapped.
-
cNames
-
Size of the array given by the rgszNames parameter.
-
lcid
-
Locale context in which to interpret the names. Can be NULL.
-
rgdispid
-
Pointer to an array that receives the DISPIDs. Each element of receives an identifier that corresponds to one of the names passed in the rgszNames parameter.
Return value
Returns an HRESULT value. Possible values include the following.
Return code | Description |
---|---|
|
Success. |
|
Insufficient memory. |
|
One or more of the names were not known. |
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|