IEnhancedStorageACT::GetSilos method (ehstorapi.h)

Returns an enumeration of all silos associated with the Addressable Command Target (ACT).

Syntax

HRESULT GetSilos(
  [out] IEnhancedStorageSilo ***pppIEnhancedStorageSilos,
  [out] ULONG                *pcEnhancedStorageSilos
);

Parameters

[out] pppIEnhancedStorageSilos

Returns an array of one or more IEnhancedStorageSilo interface pointers associated with the ACT.

[out] pcEnhancedStorageSilos

Count of IEnhancedStorageSilo pointers returned. This value indicates the dimension of the array represented by pppIEnhancedStorageSilos.

Return value

This method can return one of these values.

Return code Description
S_OK
Command was sent successfully and all associated silos have been enumerated.
E_OUTOFMEMORY
Command failed due to insufficient memory allocation.
E_INVALIDARG
pppIEnhancedStorageSilos or pcEnhancedStorageSilos is NULL.

Remarks

The memory containing the array of IEnhancedStorageSilo interfaces is allocated by the Enhanced Storage API and must be freed by passing the returned pointer to CoTaskMemFree.

Requirements

Requirement Value
Minimum supported client Windows Vista with SP2 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header ehstorapi.h

See also

IEnhancedStorageACT

IEnhancedStorageSilo