IWMDMDevice::EnumStorage method (mswmdm.h)

The EnumStorage method retrieves an IWMDMEnumStorage interface to enumerate the storages on a device.

Syntax

Syntax

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

Parameters

[out] ppEnumStorage

Pointer to a pointer to an IWMDMEnumStorage interface to enumerate the storages on a device. This points to the root storage on the device. The caller is responsible for calling Release on the retrieved interface.

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.

Requirements

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

See also

Exploring a Device

IWMDMDevice Interface

IWMDMEnumStorage Interface