banner art

Previous Next


The get_DataSources method retrieves an IWMSPlugins interface that contains a collection of data source plug-ins.


  HRESULT get_DataSources(
  IWMSPlugins**  pVal



[out] Pointer to a pointer to the IWMSPlugins interface that contains the collection data source plug-ins.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Number Description
E_POINTER 0x80004003 Indicates that pVal is a NULL pointer argument.


You can use data source plug-ins to receive content from an encoder, file system, or a network.

The following system plug-ins can be accessed by using the get_DataSources method.

Plug-in Description
WMS File Data Source Enables the Windows Media server to access playlist and media files that are stored on a FAT, FAT32, NTFS, or CIFS file system.
WMS HTTP Download Data Source Enables a Windows Media server to access playlist files from a Web server.
WMS Network Data Source Enables a Windows Media server to pull a distribution stream from an upstream server or encoder.
WMS Push Data Source Enables push distribution of a stream from an encoder to a Windows Media server.

To create custom data source plug-ins, see Creating Data Source Plug-ins.

This method calls AddRef internally. To avoid memory leaks, you must call Release when you are finished using the interface.

Example Code

    // TODO: Release temporary COM objects and uninitialize COM.


Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

Platform: Windows ServerĀ 2003 family, Windows ServerĀ 2008 family.

See Also

Previous Next