Share via


IMLPushQueue::AddWatchedLocation (Compact 7)

3/12/2014

This method adds a URL to the list of locations that the push queue monitors to update the Media Library.

Syntax

HRESULT AddWatchedLocation (
  MLDataSource datasource,
  BSTR location,
  BOOL *pHandled);

Parameters

  • datasource
    [in] Member of the MLDataSourceId enumeration that specifies the type of data source.
  • location
    [in] URL of the data source.
  • pHandled
    [out] True if the location was handled by a data source plug-in, otherwise false.

Return Values

Returns the HRESULT values shown in the following table.

Value Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_POINTER

The pHandled parameter is invalid.

E_FAIL

The method was not successful.

E_MEMORY

An out of memory error occurred.

Remarks

When the contents of a monitored location are modified, the Media Library automatically adds the location to the push queue for update. The watch list is stored in the file system on the device and persists between restarts of the Media Library.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLPushQueue