IBandSite::QueryBand method (shobjidl_core.h)
Gets information about a band in a band site.
Syntax
HRESULT QueryBand(
[in] DWORD dwBandID,
[out, optional] IDeskBand **ppstb,
[out, optional] DWORD *pdwState,
[out] LPWSTR pszName,
[in] int cchName
);
Parameters
[in] dwBandID
Type: DWORD
The ID of the band object to query.
[out, optional] ppstb
Type: IDeskBand**
Address of an IDeskBand interface pointer that, when this method returns successfully, points to the IDeskBand object that represents the band. This value can be NULL.
[out, optional] pdwState
Type: DWORD*
Pointer to a DWORD value that, when this method returns successfully, receives the state of the band object. This state is a combination of BSSF_VISIBLE, BSSF_NOTITLE, and BSSF_UNDELETEABLE. See BANDSITEINFO for more information on those flags. This value can be NULL if the state information is not needed.
[out] pszName
Type: LPWSTR
Pointer to a buffer of cchName Unicode characters that, when this method returns successfully, receives the name of the band object.
[in] cchName
Type: int
The size of the pszName buffer, in characters.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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) |