IColumnManager::SetColumnInfo method

Sets the state for a specified column.

Syntax

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

Parameters

propkey

Type: REFPROPERTYKEY

A reference to a PROPERTYKEY structure that identifies the column.

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

   
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)