Share via


IWMSDataSourcePlugin::GetDataSourceAttributes

banner art

Previous Next

IWMSDataSourcePlugin::GetDataSourceAttributes

The server calls the GetDataSourceAttributes method to retrieve the attribute flags associated with a data container.

Syntax

  HRESULT GetDataSourceAttributes(
  DWORD*  pdwFlags
);

Parameters

pdwFlags

[out] Pointer to a DWORD containing a member of the WMS_DATA_CONTAINER_ATTRIBUTES enumeration type. This must be either zero or the following value.

Value Description
WMS_DATA_CONTAINER_SUPPORTS_ENUMERATION The data container can be enumerated.

Return Values

If the method succeeds, it returns a WMS_DATA_CONTAINER_ATTRIBUTES enumeration constant. If it fails, it returns an HRESULT error code.

Remarks

Only file system data source plug-ins can support enumeration. File system plug-ins can be used to source multiple media files from directories.

Example Code

The following example illustrates a possible implementation of GetDataSourceAttributes for an NTFS data source plug-in.

HRESULT STDMETHODCALLTYPE 
CDataSource::GetDataSourceAttributes( 
                            DWORD *pdwFlags
                            )
{
    *pdwFlags = WMS_DATA_CONTAINER_SUPPORTS_ENUMERATION;
    return( S_OK );
}

Requirements

Header: datacontainer.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Previous Next