IMLDSPlugin (Compact 7)
3/12/2014
This interface is implemented by the data source plug-in and is used by the plug-in manager to initialize and control the data source plug-in modules.
Methods
In addition to the methods inherited from IUnknown this interface exposes the following methods.
- IMLDSPlugin::Init
Initializes the data source plug-in.
- IMLDSPlugin::GetDataSources
Implemented by the data source plug-in to return the number of attached data sources connected to the Media Library.
- IMLDSPlugin::GetPluginCaps
Returns a DWORD that is composed of multiple MLDataSourceFlags values to indicate what type of operations the data source supports.
- IMLDSPlugin::UpdateWatchList
Adds or removes a location to the list of monitored locations for the data source plug-in.
- IMLDSPlugin::GetWatchListCount
Returns the number of locations currently monitored by the data source plug-in.
- IMLDSPlugin::GetWatchList
Returns the list of locations currently monitored by the data source plug-in.
- IMLDSPlugin::GetFileList
Calls the IMLDSItemSink::ProcessFile method back for each file.
Remarks
The plug-in manager creates and owns the data source plug-in objects. The plug-in manager calls the methods on this interface directly to retrieve the file list, manage the push queue information, and describe the data sources.
You must register your data source plug-in with the Media Library for the plug-in manager to create the plug-in. For more information on registering your plug-in, see Media Library Registry Settings.
When to Implement
Implement this interface if you have a data source type that is not supported by the Media Library. For more information on the data source types, see the MLDataSourceId enumeration.
Requirements
Header |
mlibdll.h, |
Library |
mlibdll.lib |