Share via


IMLPushQueue::RemoveWatchedLocation (Compact 7)

3/12/2014

This method removes a URL from the list of locations that the push queue monitors for updates to the Media Library.

Syntax

HRESULT RemoveWatchedLocation (
  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 is monitored by a data source, 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.

Remarks

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

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLPushQueue