IBandSite::EnumBands method (shobjidl_core.h)
Enumerates the bands in a band site.
Syntax
HRESULT EnumBands(
[in] UINT uBand,
[out] DWORD *pdwBandID
);
Parameters
[in] uBand
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.
[out] pdwBandID
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shldisp.h) |
DLL | Shell32.dll (version 4.71 or later) |