IColumnData::SetColumnConfigData method (mmc.h)
The IColumnData::SetColumnConfigData method enables a snap-in to set the persisted width, order, and hidden status of columns in a column set.
Syntax
HRESULT SetColumnConfigData(
[in] SColumnSetID *pColID,
[in] MMC_COLUMN_SET_DATA *pColSetData
);
Parameters
[in] pColID
A pointer to an SColumnSetID structure that contains the ID of the column set whose data is to be set.
[in] pColSetData
A pointer to an MMC_COLUMN_SET_DATA structure that contains the number of columns in the column set as well as the column data to be set.
Return value
This method can return one of these values.
Remarks
If the user selects a scope item, and the snap-in then calls IColumnData::SetColumnConfigData to modify the column configuration data of the list view of the selected item. MMC will apply the changes to the list view only after the user has deselected and then reselected the item. Be aware that MMC also applies the changes to all column sets with the same ID, so if the user selects a different item with the same column set ID, MMC will also apply the persisted data to it.
Calling IColumnData::SetColumnConfigData clears the previously stored sort information and column configuration information.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |
DLL | Mmcndmgr.dll |