IMLDSItemSink::StoreMetadata (Compact 7)
3/12/2014
This method is called by the data source plug-in to store metadata in the Media Library or to pass the metadata to the application's IMLStoreMetadata callback as during a IMLCore::QueryLocation call.
Syntax
HRESULT StoreMetadata(
MLDSItem *pFile,
ULONG entityId,
IMLPropertySet *pPropertySet
);
Parameters
- pFile
[in] Pointer to the MLDSItem structure that contains the file information about the media item.
- entityId
[in] Type of media item.
- pPropertySet
[in] Pointer to the IMLPropertySet object that contains the media item metadata.
Return Values
Returns the HRESULT values shown in the following table.
Value | Description |
---|---|
S_OK |
Method succeeded. |
E_INVALIDARG |
One or more parameters are invalid. |
E_POINTER |
The pfile and pPropertySet parameters are invalid. |
E_FAIL |
Method did not succeed. |
E_OUTOFMEMORY |
Exceeded available memory. |
Remarks
The pointer to the IMLPropertySet object passed in this method can be used to retrieve the properties of the media item.
Requirements
Header |
mlibdll_plugin.h, |
Library |
mlibdll.lib |