//***************************************************************************** // Add a stream, and its size, to the list of streams to be saved. //***************************************************************************** HRESULT CLiteWeightStgdbRW::AddStreamToList( ULONG cbSize, LPCWSTR szName) { HRESULT hr = S_OK; PSTORAGESTREAM pItem; // New item to allocate & fill. // Add a new item to the end of the list. IfNullGo(pItem = m_pStreamList->Append()); // Fill out the data. pItem->SetOffset(0); pItem->SetSize(cbSize); pItem->SetName(szName); ErrExit: return hr; }