IWMPLibraryServices::getLibraryByType method
The getLibraryByType method retrieves a pointer to an IWMPLibrary interface that represents the library that has the specified type and index.
Syntax
HRESULT getLibraryByType(
WMPLibraryType wmplt,
long lIndex,
IWMPLibrary **ppIWMPLibrary
);
Parameters
wmplt
WMPLibraryType enumeration value that specifies the type of library to retrieve.
lIndex
A long containing the index of the library to retrieve.
ppIWMPLibrary
Address of a variable that receives a pointer to the retrieved IWMPLibrary interface.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
Remarks
There is only one local library and disc libraries are available only on data CDs and DVDs that contain media content.
Windows Media Player 10 Mobile: This method is not supported.
Requirements
| Minimum supported client | Windows Media Player 11. |
| Target Platform | Windows |
| Header | wmp.h |
| DLL | Wmp.dll |