ITsSbGlobalStore::EnumerateFarms method

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

Syntax

HRESULT EnumerateFarms(
  BSTR      ProviderName,
  DWORD     *pdwCount,
  SAFEARRAY **pVal
);

Parameters

ProviderName

The provider name of the resource plug-in.

pdwCount

The count of farms retrieved.

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

   
Windows version None supported Windows Server 2012
Target Platform Windows
Header sbtsv.h

See Also

ITsSbGlobalStore