IColumnManager::SetColumnInfo method (shobjidl_core.h)

Sets the state for a specified column.

Syntax

HRESULT SetColumnInfo(
  [in] REFPROPERTYKEY      propkey,
  [in] const CM_COLUMNINFO *pcmci
);

Parameters

[in] propkey

Type: REFPROPERTYKEY

A reference to a PROPERTYKEY structure that identifies the column.

[in] pcmci

Type: const CM_COLUMNINFO*

A pointer to a CM_COLUMNINFO structure that contains the state to set for this column.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Column state set.
failure
Column state not set.
E_INVALIDARG
The pcmci parameter is NULL.

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)