IBandSite::EnumBands method

Enumerates the bands in a band site.

Syntax


HRESULT EnumBands(
  [in]  UINT   uBand,
  [out] DWORD* pdwBandID
);

Parameters

uBand [in]

Type: UINT

Call the method with this parameter starting at 0 to begin enumerating. If this parameter is -1, the pdwBandID parameter is ignored and this method returns the count of the bands in the band site.

pdwBandID [out]

Type: DWORD*

The address of a band ID variable that receives the band ID.

Return value

Type: HRESULT

Returns S_OK if successful, or a COM-defined error code for errors. If the first parameter is -1, the count of the bands in the band site is returned.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shldisp.h

IDL

Shldisp.idl

DLL

Shell32.dll (version 4.71 or later)

See also

IBandSite
IDeskBand

 

 

Show: