ITsSbGlobalStore::EnumerateFarms method (sbtsv.h)

Enumerates all the farms that have been added by the specified resource plug-in.

Syntax

HRESULT EnumerateFarms(
  [in]  BSTR      ProviderName,
  [out] DWORD     *pdwCount,
  [out] SAFEARRAY **pVal
);

Parameters

[in] ProviderName

The provider name of the resource plug-in.

[out] pdwCount

The count of farms retrieved.

[out] pVal

A pointer to an array of farm names. The number of elements in this array is specified by the pdwCount parameter. When you have finished using the array, free the allocated memory by calling the SafeArrayDestroy function.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header sbtsv.h

See also

ITsSbGlobalStore