IColumnManager::GetColumnCount method (shobjidl_core.h)

Gets the column count for either the visible columns or the complete set of columns.

Syntax

HRESULT GetColumnCount(
  [in]  CM_ENUM_FLAGS dwFlags,
  [out] UINT          *puCount
);

Parameters

[in] dwFlags

Type: CM_ENUM_FLAGS

A value from the CM_ENUM_FLAGS enumeration that specifies whether to show only visible columns or all columns regardless of visibility.

[out] puCount

Type: UINT*

Contains a pointer to the column count.

Return value

Type: HRESULT

Always returns S_OK.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 5.0 or later)