2 * Compound Storage (32 bit version)
4 * Implemented using the documentation of the LAOLA project at
5 * <URL:http://wwwwbs.cs.tu-berlin.de/~schwartz/pmh/index.html>
6 * (Thanks to Martin Schwartz <schwartz@cs.tu-berlin.de>)
8 * This include file contains definitions of types and function
9 * prototypes that are used in the many files implementing the
10 * storage functionality
12 * Copyright 1998,1999 Francis Beaudet
13 * Copyright 1998,1999 Thuy Nguyen
15 #ifndef __STORAGE32_H__
16 #define __STORAGE32_H__
18 #include <ole32/ole32.h>
21 * Definitions for the file format offsets.
23 static const ULONG OFFSET_BIGBLOCKSIZEBITS = 0x0000001e;
24 static const ULONG OFFSET_SMALLBLOCKSIZEBITS = 0x00000020;
25 static const ULONG OFFSET_BBDEPOTCOUNT = 0x0000002C;
26 static const ULONG OFFSET_ROOTSTARTBLOCK = 0x00000030;
27 static const ULONG OFFSET_SBDEPOTSTART = 0x0000003C;
28 static const ULONG OFFSET_EXTBBDEPOTSTART = 0x00000044;
29 static const ULONG OFFSET_EXTBBDEPOTCOUNT = 0x00000048;
30 static const ULONG OFFSET_BBDEPOTSTART = 0x0000004C;
31 static const ULONG OFFSET_PS_NAME = 0x00000000;
32 static const ULONG OFFSET_PS_NAMELENGTH = 0x00000040;
33 static const ULONG OFFSET_PS_PROPERTYTYPE = 0x00000042;
34 static const ULONG OFFSET_PS_PREVIOUSPROP = 0x00000044;
35 static const ULONG OFFSET_PS_NEXTPROP = 0x00000048;
36 static const ULONG OFFSET_PS_DIRPROP = 0x0000004C;
37 static const ULONG OFFSET_PS_GUID = 0x00000050;
38 static const ULONG OFFSET_PS_TSS1 = 0x00000064;
39 static const ULONG OFFSET_PS_TSD1 = 0x00000068;
40 static const ULONG OFFSET_PS_TSS2 = 0x0000006C;
41 static const ULONG OFFSET_PS_TSD2 = 0x00000070;
42 static const ULONG OFFSET_PS_STARTBLOCK = 0x00000074;
43 static const ULONG OFFSET_PS_SIZE = 0x00000078;
44 static const WORD DEF_BIG_BLOCK_SIZE_BITS = 0x0009;
45 static const WORD DEF_SMALL_BLOCK_SIZE_BITS = 0x0006;
46 static const WORD DEF_BIG_BLOCK_SIZE = 0x0200;
47 static const WORD DEF_SMALL_BLOCK_SIZE = 0x0040;
48 static const ULONG BLOCK_EXTBBDEPOT = 0xFFFFFFFC;
49 static const ULONG BLOCK_SPECIAL = 0xFFFFFFFD;
50 static const ULONG BLOCK_END_OF_CHAIN = 0xFFFFFFFE;
51 static const ULONG BLOCK_UNUSED = 0xFFFFFFFF;
52 static const ULONG PROPERTY_NULL = 0xFFFFFFFF;
54 #define PROPERTY_NAME_MAX_LEN 0x20
55 #define PROPERTY_NAME_BUFFER_LEN 0x40
57 #define PROPSET_BLOCK_SIZE 0x00000080
60 * Property type of relation
62 #define PROPERTY_RELATION_PREVIOUS 0
63 #define PROPERTY_RELATION_NEXT 1
64 #define PROPERTY_RELATION_DIR 2
67 * Property type constants
69 #define PROPTYPE_STORAGE 0x01
70 #define PROPTYPE_STREAM 0x02
71 #define PROPTYPE_ROOT 0x05
74 * These defines assume a hardcoded blocksize. The code will assert
75 * if the blocksize is different. Some changes will have to be done if it
78 #define BIG_BLOCK_SIZE 0x200
79 #define COUNT_BBDEPOTINHEADER 109
80 #define LIMIT_TO_USE_SMALL_BLOCK 0x1000
81 #define NUM_BLOCKS_PER_DEPOT_BLOCK 128
84 * These are signatures to detect the type of Document file.
86 static const BYTE STORAGE_magic[8] ={0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1};
87 static const BYTE STORAGE_oldmagic[8] ={0xd0,0xcf,0x11,0xe0,0x0e,0x11,0xfc,0x0d};
90 * Forward declarations of all the structures used by the storage
93 typedef struct StorageBaseImpl StorageBaseImpl;
94 typedef struct StorageImpl StorageImpl;
95 typedef struct StorageInternalImpl StorageInternalImpl;
96 typedef struct BlockChainStream BlockChainStream;
97 typedef struct SmallBlockChainStream SmallBlockChainStream;
98 typedef struct IEnumSTATSTGImpl IEnumSTATSTGImpl;
99 typedef struct StgProperty StgProperty;
100 typedef struct StgStreamImpl StgStreamImpl;
103 * This utility structure is used to read/write the information in a storage
108 WCHAR name[PROPERTY_NAME_MAX_LEN];
109 WORD sizeOfNameString;
111 ULONG previousProperty;
114 GUID propertyUniqueID;
123 /*************************************************************************
124 * Big Block File support
126 * The big block file is an abstraction of a flat file separated in
127 * same sized blocks. The implementation for the methods described in
128 * this section appear in stg_bigblockfile.c
132 * Declaration of the data structures
134 typedef struct BigBlockFile BigBlockFile,*LPBIGBLOCKFILE;
135 typedef struct MappedPage MappedPage,*LPMAPPEDPAGE;
140 ULARGE_INTEGER filesize;
146 MappedPage *victimhead, *victimtail;
147 ULONG num_victim_pages;
154 * Declaration of the functions used to manipulate the BigBlockFile
157 BigBlockFile* BIGBLOCKFILE_Construct(HANDLE hFile,
162 void BIGBLOCKFILE_Destructor(LPBIGBLOCKFILE This);
163 void* BIGBLOCKFILE_GetBigBlock(LPBIGBLOCKFILE This, ULONG index);
164 void* BIGBLOCKFILE_GetROBigBlock(LPBIGBLOCKFILE This, ULONG index);
165 void BIGBLOCKFILE_ReleaseBigBlock(LPBIGBLOCKFILE This, void *pBlock);
166 void BIGBLOCKFILE_SetSize(LPBIGBLOCKFILE This, ULARGE_INTEGER newSize);
167 ULARGE_INTEGER BIGBLOCKFILE_GetSize(LPBIGBLOCKFILE This);
169 /*************************************************************************
170 * Ole Convert support
173 void OLECONVERT_CreateOleStream(LPSTORAGE pStorage);
174 HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName);
176 /****************************************************************************
177 * Storage32BaseImpl definitions.
179 * This stucture defines the base information contained in all implementations
180 * of IStorage32 contained in this filee storage implementation.
182 * In OOP terms, this is the base class for all the IStorage32 implementations
183 * contained in this file.
185 struct StorageBaseImpl
187 ICOM_VFIELD(IStorage); /* Needs to be the first item in the stuct
188 * since we want to cast this in a Storage32 pointer */
191 * Reference count of this object
196 * Ancestor storage (top level)
198 StorageImpl* ancestorStorage;
201 * Index of the property for the root of
204 ULONG rootPropertySetIndex;
207 * virtual Destructor method.
209 void (*v_destructor)(StorageBaseImpl*);
214 * Prototypes for the methods of the Storage32BaseImpl class.
216 HRESULT WINAPI StorageBaseImpl_QueryInterface(
221 ULONG WINAPI StorageBaseImpl_AddRef(
224 ULONG WINAPI StorageBaseImpl_Release(
227 HRESULT WINAPI StorageBaseImpl_OpenStream(
229 const OLECHAR* pwcsName, /* [string][in] */
230 void* reserved1, /* [unique][in] */
231 DWORD grfMode, /* [in] */
232 DWORD reserved2, /* [in] */
233 IStream** ppstm); /* [out] */
235 HRESULT WINAPI StorageBaseImpl_OpenStorage(
237 const OLECHAR* pwcsName, /* [string][unique][in] */
238 IStorage* pstgPriority, /* [unique][in] */
239 DWORD grfMode, /* [in] */
240 SNB snbExclude, /* [unique][in] */
241 DWORD reserved, /* [in] */
242 IStorage** ppstg); /* [out] */
244 HRESULT WINAPI StorageBaseImpl_EnumElements(
246 DWORD reserved1, /* [in] */
247 void* reserved2, /* [size_is][unique][in] */
248 DWORD reserved3, /* [in] */
249 IEnumSTATSTG** ppenum); /* [out] */
251 HRESULT WINAPI StorageBaseImpl_Stat(
253 STATSTG* pstatstg, /* [out] */
254 DWORD grfStatFlag); /* [in] */
256 HRESULT WINAPI StorageBaseImpl_RenameElement(
258 const OLECHAR* pwcsOldName, /* [string][in] */
259 const OLECHAR* pwcsNewName); /* [string][in] */
261 HRESULT WINAPI StorageBaseImpl_CreateStream(
263 const OLECHAR* pwcsName, /* [string][in] */
264 DWORD grfMode, /* [in] */
265 DWORD reserved1, /* [in] */
266 DWORD reserved2, /* [in] */
267 IStream** ppstm); /* [out] */
269 HRESULT WINAPI StorageBaseImpl_SetClass(
271 REFCLSID clsid); /* [in] */
273 /****************************************************************************
274 * Storage32Impl definitions.
276 * This implementation of the IStorage32 interface represents a root
277 * storage. Basically, a document file.
281 ICOM_VFIELD(IStorage); /* Needs to be the first item in the stuct
282 * since we want to cast this in a Storage32 pointer */
285 * Declare the member of the Storage32BaseImpl class to allow
286 * casting as a Storage32BaseImpl
289 struct StorageImpl* ancestorStorage;
290 ULONG rootPropertySetIndex;
291 void (*v_destructor)(struct StorageImpl*);
294 * The following data members are specific to the Storage32Impl
297 HANDLE hFile; /* Physical support for the Docfile */
302 WORD bigBlockSizeBits;
303 WORD smallBlockSizeBits;
305 ULONG smallBlockSize;
306 ULONG bigBlockDepotCount;
307 ULONG rootStartBlock;
308 ULONG smallBlockDepotStart;
309 ULONG extBigBlockDepotStart;
310 ULONG extBigBlockDepotCount;
311 ULONG bigBlockDepotStart[COUNT_BBDEPOTINHEADER];
313 ULONG blockDepotCached[NUM_BLOCKS_PER_DEPOT_BLOCK];
314 ULONG indexBlockDepotCached;
318 * Abstraction of the big block chains for the chains of the header.
320 BlockChainStream* rootBlockChain;
321 BlockChainStream* smallBlockDepotChain;
322 BlockChainStream* smallBlockRootChain;
325 * Pointer to the big block file abstraction
327 BigBlockFile* bigBlockFile;
331 * Method declaration for the Storage32Impl class
334 HRESULT WINAPI StorageImpl_CreateStorage(
336 const OLECHAR* pwcsName, /* [string][in] */
337 DWORD grfMode, /* [in] */
338 DWORD dwStgFmt, /* [in] */
339 DWORD reserved2, /* [in] */
340 IStorage** ppstg); /* [out] */
342 HRESULT WINAPI StorageImpl_CopyTo(
344 DWORD ciidExclude, /* [in] */
345 const IID* rgiidExclude, /* [size_is][unique][in] */
346 SNB snbExclude, /* [unique][in] */
347 IStorage* pstgDest); /* [unique][in] */
349 HRESULT WINAPI StorageImpl_MoveElementTo(
351 const OLECHAR* pwcsName, /* [string][in] */
352 IStorage* pstgDest, /* [unique][in] */
353 const OLECHAR* pwcsNewName, /* [string][in] */
354 DWORD grfFlags); /* [in] */
356 HRESULT WINAPI StorageImpl_Commit(
358 DWORD grfCommitFlags); /* [in] */
360 HRESULT WINAPI StorageImpl_Revert(
363 HRESULT WINAPI StorageImpl_DestroyElement(
365 const OLECHAR* pwcsName); /* [string][in] */
367 HRESULT WINAPI StorageImpl_SetElementTimes(
369 const OLECHAR* pwcsName, /* [string][in] */
370 const FILETIME* pctime, /* [in] */
371 const FILETIME* patime, /* [in] */
372 const FILETIME* pmtime); /* [in] */
374 HRESULT WINAPI StorageImpl_SetStateBits(
376 DWORD grfStateBits, /* [in] */
377 DWORD grfMask); /* [in] */
379 void StorageImpl_Destroy(
382 HRESULT StorageImpl_Construct(
390 BOOL StorageImpl_ReadBigBlock(
395 BOOL StorageImpl_WriteBigBlock(
400 void* StorageImpl_GetROBigBlock(
404 void* StorageImpl_GetBigBlock(
408 void StorageImpl_ReleaseBigBlock(
412 ULONG StorageImpl_GetNextFreeBigBlock(
415 void StorageImpl_FreeBigBlock(
419 ULONG StorageImpl_GetNextBlockInChain(
423 void StorageImpl_SetNextBlockInChain(
428 HRESULT StorageImpl_LoadFileHeader(
431 void StorageImpl_SaveFileHeader(
434 BOOL StorageImpl_ReadProperty(
437 StgProperty* buffer);
439 BOOL StorageImpl_WriteProperty(
442 StgProperty* buffer);
444 BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
446 SmallBlockChainStream** ppsbChain);
448 ULONG Storage32Impl_GetNextExtendedBlock(StorageImpl* This,
451 void Storage32Impl_AddBlockDepot(StorageImpl* This,
454 ULONG Storage32Impl_AddExtBlockDepot(StorageImpl* This);
456 ULONG Storage32Impl_GetExtDepotBlock(StorageImpl* This,
459 void Storage32Impl_SetExtDepotBlock(StorageImpl* This,
462 /****************************************************************************
463 * Storage32InternalImpl definitions.
465 * Definition of the implementation structure for the IStorage32 interface.
466 * This one implements the IStorage32 interface for storage that are
467 * inside another storage.
469 struct StorageInternalImpl
471 ICOM_VFIELD(IStorage); /* Needs to be the first item in the stuct
472 * since we want to cast this in a Storage32 pointer */
475 * Declare the member of the Storage32BaseImpl class to allow
476 * casting as a Storage32BaseImpl
479 struct StorageImpl* ancestorStorage;
480 ULONG rootPropertySetIndex;
481 void (*v_destructor)(struct StorageInternalImpl*);
484 * There is no specific data for this class.
489 * Method definitions for the Storage32InternalImpl class.
491 StorageInternalImpl* StorageInternalImpl_Construct(
492 StorageImpl* ancestorStorage,
493 ULONG rootTropertyIndex);
495 void StorageInternalImpl_Destroy(
496 StorageInternalImpl* This);
498 HRESULT WINAPI StorageInternalImpl_Commit(
500 DWORD grfCommitFlags); /* [in] */
502 HRESULT WINAPI StorageInternalImpl_Revert(
506 /****************************************************************************
507 * IEnumSTATSTGImpl definitions.
509 * Definition of the implementation structure for the IEnumSTATSTGImpl interface.
510 * This class allows iterating through the content of a storage and to find
511 * specific items inside it.
513 struct IEnumSTATSTGImpl
515 ICOM_VFIELD(IEnumSTATSTG); /* Needs to be the first item in the stuct
516 * since we want to cast this in a IEnumSTATSTG pointer */
518 ULONG ref; /* Reference count */
519 StorageImpl* parentStorage; /* Reference to the parent storage */
520 ULONG firstPropertyNode; /* Index of the root of the storage to enumerate */
523 * The current implementation of the IEnumSTATSTGImpl class uses a stack
524 * to walk the property sets to get the content of a storage. This stack
525 * is implemented by the following 3 data members
531 #define ENUMSTATSGT_SIZE_INCREMENT 10
535 * Method definitions for the IEnumSTATSTGImpl class.
537 HRESULT WINAPI IEnumSTATSTGImpl_QueryInterface(
542 ULONG WINAPI IEnumSTATSTGImpl_AddRef(
543 IEnumSTATSTG* iface);
545 ULONG WINAPI IEnumSTATSTGImpl_Release(
546 IEnumSTATSTG* iface);
548 HRESULT WINAPI IEnumSTATSTGImpl_Next(
552 ULONG* pceltFetched);
554 HRESULT WINAPI IEnumSTATSTGImpl_Skip(
558 HRESULT WINAPI IEnumSTATSTGImpl_Reset(
559 IEnumSTATSTG* iface);
561 HRESULT WINAPI IEnumSTATSTGImpl_Clone(
563 IEnumSTATSTG** ppenum);
565 IEnumSTATSTGImpl* IEnumSTATSTGImpl_Construct(
567 ULONG firstPropertyNode);
569 void IEnumSTATSTGImpl_Destroy(
570 IEnumSTATSTGImpl* This);
572 void IEnumSTATSTGImpl_PushSearchNode(
573 IEnumSTATSTGImpl* This,
576 ULONG IEnumSTATSTGImpl_PopSearchNode(
577 IEnumSTATSTGImpl* This,
580 ULONG IEnumSTATSTGImpl_FindProperty(
581 IEnumSTATSTGImpl* This,
582 const OLECHAR* lpszPropName,
583 StgProperty* buffer);
585 INT IEnumSTATSTGImpl_FindParentProperty(
586 IEnumSTATSTGImpl *This,
588 StgProperty *currentProperty,
592 /****************************************************************************
593 * StgStreamImpl definitions.
595 * This class imlements the IStream32 inteface and represents a stream
596 * located inside a storage object.
600 ICOM_VFIELD(IStream); /* Needs to be the first item in the stuct
601 * since we want to cast this in a IStream pointer */
609 * Storage that is the parent(owner) of the stream
611 StorageBaseImpl* parentStorage;
614 * Access mode of this stream.
619 * Index of the property that owns (points to) this stream.
624 * Helper variable that contains the size of the stream
626 ULARGE_INTEGER streamSize;
629 * This is the current position of the cursor in the stream
631 ULARGE_INTEGER currentPosition;
634 * The information in the stream is represented by a chain of small blocks
635 * or a chain of large blocks. Depending on the case, one of the two
636 * following variabled points to that information.
638 BlockChainStream* bigBlockChain;
639 SmallBlockChainStream* smallBlockChain;
643 * Method definition for the StgStreamImpl class.
645 StgStreamImpl* StgStreamImpl_Construct(
646 StorageBaseImpl* parentStorage,
648 ULONG ownerProperty);
650 void StgStreamImpl_Destroy(
651 StgStreamImpl* This);
653 void StgStreamImpl_OpenBlockChain(
654 StgStreamImpl* This);
656 HRESULT WINAPI StgStreamImpl_QueryInterface(
658 REFIID riid, /* [in] */
659 void** ppvObject); /* [iid_is][out] */
661 ULONG WINAPI StgStreamImpl_AddRef(
664 ULONG WINAPI StgStreamImpl_Release(
667 HRESULT WINAPI StgStreamImpl_Read(
669 void* pv, /* [length_is][size_is][out] */
671 ULONG* pcbRead); /* [out] */
673 HRESULT WINAPI StgStreamImpl_Write(
675 const void* pv, /* [size_is][in] */
677 ULONG* pcbWritten); /* [out] */
679 HRESULT WINAPI StgStreamImpl_Seek(
681 LARGE_INTEGER dlibMove, /* [in] */
682 DWORD dwOrigin, /* [in] */
683 ULARGE_INTEGER* plibNewPosition); /* [out] */
685 HRESULT WINAPI StgStreamImpl_SetSize(
687 ULARGE_INTEGER libNewSize); /* [in] */
689 HRESULT WINAPI StgStreamImpl_CopyTo(
691 IStream* pstm, /* [unique][in] */
692 ULARGE_INTEGER cb, /* [in] */
693 ULARGE_INTEGER* pcbRead, /* [out] */
694 ULARGE_INTEGER* pcbWritten); /* [out] */
696 HRESULT WINAPI StgStreamImpl_Commit(
698 DWORD grfCommitFlags); /* [in] */
700 HRESULT WINAPI StgStreamImpl_Revert(
703 HRESULT WINAPI StgStreamImpl_LockRegion(
705 ULARGE_INTEGER libOffset, /* [in] */
706 ULARGE_INTEGER cb, /* [in] */
707 DWORD dwLockType); /* [in] */
709 HRESULT WINAPI StgStreamImpl_UnlockRegion(
711 ULARGE_INTEGER libOffset, /* [in] */
712 ULARGE_INTEGER cb, /* [in] */
713 DWORD dwLockType); /* [in] */
715 HRESULT WINAPI StgStreamImpl_Stat(
717 STATSTG* pstatstg, /* [out] */
718 DWORD grfStatFlag); /* [in] */
720 HRESULT WINAPI StgStreamImpl_Clone(
722 IStream** ppstm); /* [out] */
725 /********************************************************************************
726 * The StorageUtl_ functions are miscelaneous utility functions. Most of which are
727 * abstractions used to read values from file buffers without having to worry
730 void StorageUtl_ReadWord(void* buffer, ULONG offset, WORD* value);
731 void StorageUtl_WriteWord(void* buffer, ULONG offset, WORD value);
732 void StorageUtl_ReadDWord(void* buffer, ULONG offset, DWORD* value);
733 void StorageUtl_WriteDWord(void* buffer, ULONG offset, DWORD value);
734 void StorageUtl_ReadGUID(void* buffer, ULONG offset, GUID* value);
735 void StorageUtl_WriteGUID(void* buffer, ULONG offset, GUID* value);
736 void StorageUtl_CopyPropertyToSTATSTG(STATSTG* destination,
740 /****************************************************************************
741 * BlockChainStream definitions.
743 * The BlockChainStream class is a utility class that is used to create an
744 * abstraction of the big block chains in the storage file.
746 struct BlockChainStream
748 StorageImpl* parentStorage;
749 ULONG* headOfStreamPlaceHolder;
750 ULONG ownerPropertyIndex;
751 ULONG lastBlockNoInSequence;
752 ULONG lastBlockNoInSequenceIndex;
758 * Methods for the BlockChainStream class.
760 BlockChainStream* BlockChainStream_Construct(
761 StorageImpl* parentStorage,
762 ULONG* headOfStreamPlaceHolder,
763 ULONG propertyIndex);
765 void BlockChainStream_Destroy(
766 BlockChainStream* This);
768 ULONG BlockChainStream_GetHeadOfChain(
769 BlockChainStream* This);
771 BOOL BlockChainStream_ReadAt(
772 BlockChainStream* This,
773 ULARGE_INTEGER offset,
778 BOOL BlockChainStream_WriteAt(
779 BlockChainStream* This,
780 ULARGE_INTEGER offset,
783 ULONG* bytesWritten);
785 BOOL BlockChainStream_SetSize(
786 BlockChainStream* This,
787 ULARGE_INTEGER newSize);
789 ULARGE_INTEGER BlockChainStream_GetSize(
790 BlockChainStream* This);
792 ULONG BlockChainStream_GetCount(
793 BlockChainStream* This);
795 /****************************************************************************
796 * SmallBlockChainStream definitions.
798 * The SmallBlockChainStream class is a utility class that is used to create an
799 * abstraction of the small block chains in the storage file.
801 struct SmallBlockChainStream
803 StorageImpl* parentStorage;
804 ULONG ownerPropertyIndex;
808 * Methods of the SmallBlockChainStream class.
810 SmallBlockChainStream* SmallBlockChainStream_Construct(
811 StorageImpl* parentStorage,
812 ULONG propertyIndex);
814 void SmallBlockChainStream_Destroy(
815 SmallBlockChainStream* This);
817 ULONG SmallBlockChainStream_GetHeadOfChain(
818 SmallBlockChainStream* This);
820 ULONG SmallBlockChainStream_GetNextBlockInChain(
821 SmallBlockChainStream* This,
824 void SmallBlockChainStream_SetNextBlockInChain(
825 SmallBlockChainStream* This,
829 void SmallBlockChainStream_FreeBlock(
830 SmallBlockChainStream* This,
833 ULONG SmallBlockChainStream_GetNextFreeBlock(
834 SmallBlockChainStream* This);
836 BOOL SmallBlockChainStream_ReadAt(
837 SmallBlockChainStream* This,
838 ULARGE_INTEGER offset,
843 BOOL SmallBlockChainStream_WriteAt(
844 SmallBlockChainStream* This,
845 ULARGE_INTEGER offset,
848 ULONG* bytesWritten);
850 BOOL SmallBlockChainStream_SetSize(
851 SmallBlockChainStream* This,
852 ULARGE_INTEGER newSize);
854 ULARGE_INTEGER SmallBlockChainStream_GetSize(
855 SmallBlockChainStream* This);
857 ULONG SmallBlockChainStream_GetCount(
858 SmallBlockChainStream* This);
861 #endif /* __STORAGE32_H__ */