Share via


IMLDSPlugin::GetWatchList (Compact 7)

3/12/2014

This method returns the list of locations currently monitored by the data source plug-in.

Syntax

HRESULT GetWatchList (
  int  datasourceId,
  BSTR  **prgWatchList,
  ULONG  *pcWatchList
);

Parameters

  • datasourceId
    [in] Enumeration MLDataSource that identifies the data source.
  • prgWatchList
    [out] Pointer to the array of watched folders. This array must be freed by the caller.
  • pcWatchList
    [out] Pointer to the size of the prgWatchList array.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_POINTER

The prgWatchList or the pcWatchList parameter is invalid.

E_FAIL

The method was not successful.

E_OUTOFMEMORY

An out of memory error occurred.

Remarks

The plug-in manager calls this method when the application calls IMLPushQueue::GetWatchList to retrieve the list of monitored locations.

Requirements

Header

mlibdll_plugin.h,
mlibdll_plugin.idl

Library

mlibdll.lib

See Also

Reference

IMLDSPlugin