GetColumnSortData() always returns S_FALSE
problem:
GetColumnSortData() always returns S_FALSE
simplified code:
===========
DWORD dwIdSize = ( strwColumnSetId.GetLength() ) * sizeof( wchar_t );
DWORD dwAllocSize = sizeof( SColumnSetID ) + dwIdSize;
SColumnSetID* pColumnSetId = reinterpret_cast<SColumnSetID*>( new
BYTE[dwAllocSize] );
pColumnSetId->dwFlags = RESERVED;
pColumnSetId->cBytes = dwIdSize;
::lstrcpyW( reinterpret_cast<LPWSTR>(pColumnSetId->id), strwColumnSetId );
MMC_SORT_SET_DATA* pColumnSortSetData = NULL;
hr = piColumnData->GetColumnSortData( pColumnSetId, &pColumnSortSetData );
notes:
there is defiantely a current result view and a sort (and icon) on the
column set
the data object is being queried for the column set for this scope item
(CCF_COLUMN_SET_ID)
the data object is returning the same value (strwColumnSetId) as is being
provided to GetColumnSortData
IColumnData is a current query from the IConsole2 drawn from the appropriate
IComponent
Stumped.
TIA,
Eric
|