ITsSbGlobalStore::EnumerateTargetsByFarm method
Retrieves an array of targets that are joined to the specified farm.
Syntax
HRESULT EnumerateTargetsByFarm(
[in] BSTR ProviderName,
[in] BSTR FarmName,
[in, out] DWORD *pdwCount,
[out] IUnknown **pVal[]
);
Parameters
ProviderName [in]
A string that contains the resource plug-in provider name that owns these targets or farm.FarmName [in]
A string that contains the farm name.pdwCount [in, out]
The number of targets retrieved.pVal [out]
The address of a pointer to an array of IUnknown objects. You can call QueryInterface on each element to retrieve the target object. When you have finished using the array, release each element and free the array by calling the CoTaskMemFree function.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Any changes made to the target objects returned by this method do not affect the target objects stored in Remote Desktop Connection Broker (RD Connection Broker). The target objects returned are copies of the target objects in RD Connection Broker.
Requirements
Minimum supported client |
None supported [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
IDL |
Sbtsv.idl |
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012