IColumnManager::GetColumnInfo method (shobjidl_core.h)
Gets information about each column: width, visibility, display name, and state.
Syntax
HRESULT GetColumnInfo(
[in] REFPROPERTYKEY propkey,
[in, out] CM_COLUMNINFO *pcmci
);
Parameters
[in] propkey
Type: REFPROPERTYKEY
A reference to a PROPERTYKEY structure.
[in, out] pcmci
Type: CM_COLUMNINFO*
A pointer to a CM_COLUMNINFO structure. On entry, set this structure's dwMask member to specify the information to retrieve. Also set its cbSize member. When this method returns successfully, the structure contains the requested information.
Return value
Type: HRESULT
Returns one of the following values.
Return code | Description |
---|---|
|
Column information obtained. |
|
Column information not obtained. |
|
Indicates that cbSize member of pcmci does not equal the size of CM_COLUMNINFO. |
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) |