IWMDMStorage::EnumStorage method (mswmdm.h)

The EnumStorage method retrieves an IWMDMEnumStorage interface to enumerate the immediate child storages of the current storage.

Syntax

HRESULT EnumStorage(
  [out] IWMDMEnumStorage **pEnumStorage
);

Parameters

[out] pEnumStorage

Pointer to an IWMDMEnumStorage interface. The caller must release this interface when done with it.

Return value

The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:

  • Standard COM error codes
  • Windows error codes converted to HRESULT values
  • Windows Media Device Manager error codes
For an extensive list of possible error codes, see Error Codes.

Remarks

The IWMDMEnumStorage interface that is retrieved will enumerate the immediate children of this object. This method allows an application to navigate the contents of a device recursively.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

Exploring a Device

IWMDMDevice::EnumStorage

IWMDMEnumStorage Interface

IWMDMStorage Interface