IColumnManager::SetColumnInfo method

Sets the state for a specified column.

Syntax


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

Parameters

propkey [in]

Type: REFPROPERTYKEY

A reference to a PROPERTYKEY structure that identifies the column.

pcmci [in]

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 codeDescription
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]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft