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__
20 #include "wine/obj_base.h"
21 #include "wine/obj_storage.h"
24 * Definitions for the file format offsets.
26 static const ULONG OFFSET_BIGBLOCKSIZEBITS = 0x0000001e;
27 static const ULONG OFFSET_SMALLBLOCKSIZEBITS = 0x00000020;
28 static const ULONG OFFSET_BBDEPOTCOUNT = 0x0000002C;
29 static const ULONG OFFSET_ROOTSTARTBLOCK = 0x00000030;
30 static const ULONG OFFSET_SBDEPOTSTART = 0x0000003C;
31 static const ULONG OFFSET_EXTBBDEPOTSTART = 0x00000044;
32 static const ULONG OFFSET_EXTBBDEPOTCOUNT = 0x00000048;
33 static const ULONG OFFSET_BBDEPOTSTART = 0x0000004C;
34 static const ULONG OFFSET_PS_NAME = 0x00000000;
35 static const ULONG OFFSET_PS_NAMELENGTH = 0x00000040;
36 static const ULONG OFFSET_PS_PROPERTYTYPE = 0x00000042;
37 static const ULONG OFFSET_PS_PREVIOUSPROP = 0x00000044;
38 static const ULONG OFFSET_PS_NEXTPROP = 0x00000048;
39 static const ULONG OFFSET_PS_DIRPROP = 0x0000004C;
40 static const ULONG OFFSET_PS_GUID = 0x00000050;
41 static const ULONG OFFSET_PS_TSS1 = 0x00000064;
42 static const ULONG OFFSET_PS_TSD1 = 0x00000068;
43 static const ULONG OFFSET_PS_TSS2 = 0x0000006C;
44 static const ULONG OFFSET_PS_TSD2 = 0x00000070;
45 static const ULONG OFFSET_PS_STARTBLOCK = 0x00000074;
46 static const ULONG OFFSET_PS_SIZE = 0x00000078;
47 static const WORD DEF_BIG_BLOCK_SIZE_BITS = 0x0009;
48 static const WORD DEF_SMALL_BLOCK_SIZE_BITS = 0x0006;
49 static const WORD DEF_BIG_BLOCK_SIZE = 0x0200;
50 static const WORD DEF_SMALL_BLOCK_SIZE = 0x0040;
51 static const ULONG BLOCK_EXTBBDEPOT = 0xFFFFFFFC;
52 static const ULONG BLOCK_SPECIAL = 0xFFFFFFFD;
53 static const ULONG BLOCK_END_OF_CHAIN = 0xFFFFFFFE;
54 static const ULONG BLOCK_UNUSED = 0xFFFFFFFF;
55 static const ULONG PROPERTY_NULL = 0xFFFFFFFF;
57 #define PROPERTY_NAME_MAX_LEN 0x20
58 #define PROPERTY_NAME_BUFFER_LEN 0x40
60 #define PROPSET_BLOCK_SIZE 0x00000080
63 * Property type of relation
65 #define PROPERTY_RELATION_PREVIOUS 0
66 #define PROPERTY_RELATION_NEXT 1
67 #define PROPERTY_RELATION_DIR 2
70 * Property type constants
72 #define PROPTYPE_STORAGE 0x01
73 #define PROPTYPE_STREAM 0x02
74 #define PROPTYPE_ROOT 0x05
77 * These defines assume a hardcoded blocksize. The code will assert
78 * if the blocksize is different. Some changes will have to be done if it
81 #define BIG_BLOCK_SIZE 0x200
82 #define COUNT_BBDEPOTINHEADER 109
83 #define LIMIT_TO_USE_SMALL_BLOCK 0x1000
84 #define NUM_BLOCKS_PER_DEPOT_BLOCK 128
87 * These are signatures to detect the type of Document file.
89 static const BYTE STORAGE_magic[8] ={0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1};
90 static const BYTE STORAGE_oldmagic[8] ={0xd0,0xcf,0x11,0xe0,0x0e,0x11,0xfc,0x0d};
93 * Forward declarations of all the structures used by the storage
96 typedef struct StorageBaseImpl StorageBaseImpl;
97 typedef struct StorageImpl StorageImpl;
98 typedef struct StorageInternalImpl StorageInternalImpl;
99 typedef struct BlockChainStream BlockChainStream;
100 typedef struct SmallBlockChainStream SmallBlockChainStream;
101 typedef struct IEnumSTATSTGImpl IEnumSTATSTGImpl;
102 typedef struct StgProperty StgProperty;
103 typedef struct StgStreamImpl StgStreamImpl;
106 * This utility structure is used to read/write the information in a storage
111 WCHAR name[PROPERTY_NAME_MAX_LEN];
112 WORD sizeOfNameString;
114 ULONG previousProperty;
117 GUID propertyUniqueID;
126 /*************************************************************************
127 * Big Block File support
129 * The big block file is an abstraction of a flat file separated in
130 * same sized blocks. The implementation for the methods described in
131 * this section appear in stg_bigblockfile.c
135 * Declaration of the data structures
137 typedef struct BigBlockFile BigBlockFile,*LPBIGBLOCKFILE;
138 typedef struct MappedPage MappedPage,*LPMAPPEDPAGE;
143 ULARGE_INTEGER filesize;
149 MappedPage *victimhead, *victimtail;
150 ULONG num_victim_pages;
157 * Declaration of the functions used to manipulate the BigBlockFile
160 BigBlockFile* BIGBLOCKFILE_Construct(HANDLE hFile,
165 void BIGBLOCKFILE_Destructor(LPBIGBLOCKFILE This);
166 void* BIGBLOCKFILE_GetBigBlock(LPBIGBLOCKFILE This, ULONG index);
167 void* BIGBLOCKFILE_GetROBigBlock(LPBIGBLOCKFILE This, ULONG index);
168 void BIGBLOCKFILE_ReleaseBigBlock(LPBIGBLOCKFILE This, void *pBlock);
169 void BIGBLOCKFILE_SetSize(LPBIGBLOCKFILE This, ULARGE_INTEGER newSize);
170 ULARGE_INTEGER BIGBLOCKFILE_GetSize(LPBIGBLOCKFILE This);
172 /*************************************************************************
173 * Ole Convert support
176 void OLECONVERT_CreateOleStream(LPSTORAGE pStorage);
177 HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName);
179 /****************************************************************************
180 * Storage32BaseImpl definitions.
182 * This structure defines the base information contained in all implementations
183 * of IStorage32 contained in this file storage implementation.
185 * In OOP terms, this is the base class for all the IStorage32 implementations
186 * contained in this file.
188 struct StorageBaseImpl
190 ICOM_VFIELD(IStorage); /* Needs to be the first item in the struct
191 * since we want to cast this in a Storage32 pointer */
194 * Reference count of this object
199 * Ancestor storage (top level)
201 StorageImpl* ancestorStorage;
204 * Index of the property for the root of
207 ULONG rootPropertySetIndex;
210 * virtual Destructor method.
212 void (*v_destructor)(StorageBaseImpl*);
217 * Prototypes for the methods of the Storage32BaseImpl class.
219 HRESULT WINAPI StorageBaseImpl_QueryInterface(
224 ULONG WINAPI StorageBaseImpl_AddRef(
227 ULONG WINAPI StorageBaseImpl_Release(
230 HRESULT WINAPI StorageBaseImpl_OpenStream(
232 const OLECHAR* pwcsName, /* [string][in] */
233 void* reserved1, /* [unique][in] */
234 DWORD grfMode, /* [in] */
235 DWORD reserved2, /* [in] */
236 IStream** ppstm); /* [out] */
238 HRESULT WINAPI StorageBaseImpl_OpenStorage(
240 const OLECHAR* pwcsName, /* [string][unique][in] */
241 IStorage* pstgPriority, /* [unique][in] */
242 DWORD grfMode, /* [in] */
243 SNB snbExclude, /* [unique][in] */
244 DWORD reserved, /* [in] */
245 IStorage** ppstg); /* [out] */
247 HRESULT WINAPI StorageBaseImpl_EnumElements(
249 DWORD reserved1, /* [in] */
250 void* reserved2, /* [size_is][unique][in] */
251 DWORD reserved3, /* [in] */
252 IEnumSTATSTG** ppenum); /* [out] */
254 HRESULT WINAPI StorageBaseImpl_Stat(
256 STATSTG* pstatstg, /* [out] */
257 DWORD grfStatFlag); /* [in] */
259 HRESULT WINAPI StorageBaseImpl_RenameElement(
261 const OLECHAR* pwcsOldName, /* [string][in] */
262 const OLECHAR* pwcsNewName); /* [string][in] */
264 HRESULT WINAPI StorageBaseImpl_CreateStream(
266 const OLECHAR* pwcsName, /* [string][in] */
267 DWORD grfMode, /* [in] */
268 DWORD reserved1, /* [in] */
269 DWORD reserved2, /* [in] */
270 IStream** ppstm); /* [out] */
272 HRESULT WINAPI StorageBaseImpl_SetClass(
274 REFCLSID clsid); /* [in] */
276 /****************************************************************************
277 * Storage32Impl definitions.
279 * This implementation of the IStorage32 interface represents a root
280 * storage. Basically, a document file.
284 ICOM_VFIELD(IStorage); /* Needs to be the first item in the struct
285 * since we want to cast this in a Storage32 pointer */
288 * Declare the member of the Storage32BaseImpl class to allow
289 * casting as a Storage32BaseImpl
292 struct StorageImpl* ancestorStorage;
293 ULONG rootPropertySetIndex;
294 void (*v_destructor)(struct StorageImpl*);
297 * The following data members are specific to the Storage32Impl
300 HANDLE hFile; /* Physical support for the Docfile */
301 LPOLESTR pwcsName; /* Full path of the document file */
303 /* FIXME: should this be in Storage32BaseImpl ? */
304 WCHAR filename[PROPERTY_NAME_BUFFER_LEN];
309 WORD bigBlockSizeBits;
310 WORD smallBlockSizeBits;
312 ULONG smallBlockSize;
313 ULONG bigBlockDepotCount;
314 ULONG rootStartBlock;
315 ULONG smallBlockDepotStart;
316 ULONG extBigBlockDepotStart;
317 ULONG extBigBlockDepotCount;
318 ULONG bigBlockDepotStart[COUNT_BBDEPOTINHEADER];
320 ULONG blockDepotCached[NUM_BLOCKS_PER_DEPOT_BLOCK];
321 ULONG indexBlockDepotCached;
325 * Abstraction of the big block chains for the chains of the header.
327 BlockChainStream* rootBlockChain;
328 BlockChainStream* smallBlockDepotChain;
329 BlockChainStream* smallBlockRootChain;
332 * Pointer to the big block file abstraction
334 BigBlockFile* bigBlockFile;
338 * Method declaration for the Storage32Impl class
341 HRESULT WINAPI StorageImpl_CreateStorage(
343 const OLECHAR* pwcsName, /* [string][in] */
344 DWORD grfMode, /* [in] */
345 DWORD dwStgFmt, /* [in] */
346 DWORD reserved2, /* [in] */
347 IStorage** ppstg); /* [out] */
349 HRESULT WINAPI StorageImpl_CopyTo(
351 DWORD ciidExclude, /* [in] */
352 const IID* rgiidExclude, /* [size_is][unique][in] */
353 SNB snbExclude, /* [unique][in] */
354 IStorage* pstgDest); /* [unique][in] */
356 HRESULT WINAPI StorageImpl_MoveElementTo(
358 const OLECHAR* pwcsName, /* [string][in] */
359 IStorage* pstgDest, /* [unique][in] */
360 const OLECHAR* pwcsNewName, /* [string][in] */
361 DWORD grfFlags); /* [in] */
363 HRESULT WINAPI StorageImpl_Commit(
365 DWORD grfCommitFlags); /* [in] */
367 HRESULT WINAPI StorageImpl_Revert(
370 HRESULT WINAPI StorageImpl_DestroyElement(
372 const OLECHAR* pwcsName); /* [string][in] */
374 HRESULT WINAPI StorageImpl_SetElementTimes(
376 const OLECHAR* pwcsName, /* [string][in] */
377 const FILETIME* pctime, /* [in] */
378 const FILETIME* patime, /* [in] */
379 const FILETIME* pmtime); /* [in] */
381 HRESULT WINAPI StorageImpl_SetStateBits(
383 DWORD grfStateBits, /* [in] */
384 DWORD grfMask); /* [in] */
386 HRESULT WINAPI StorageImpl_Stat(IStorage* iface,
387 STATSTG* pstatstg, /* [out] */
388 DWORD grfStatFlag); /* [in] */
390 void StorageImpl_Destroy(
393 HRESULT StorageImpl_Construct(
402 BOOL StorageImpl_ReadBigBlock(
407 BOOL StorageImpl_WriteBigBlock(
412 void* StorageImpl_GetROBigBlock(
416 void* StorageImpl_GetBigBlock(
420 void StorageImpl_ReleaseBigBlock(
424 ULONG StorageImpl_GetNextFreeBigBlock(
427 void StorageImpl_FreeBigBlock(
431 ULONG StorageImpl_GetNextBlockInChain(
435 void StorageImpl_SetNextBlockInChain(
440 HRESULT StorageImpl_LoadFileHeader(
443 void StorageImpl_SaveFileHeader(
446 BOOL StorageImpl_ReadProperty(
449 StgProperty* buffer);
451 BOOL StorageImpl_WriteProperty(
454 StgProperty* buffer);
456 BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
458 SmallBlockChainStream** ppsbChain);
460 ULONG Storage32Impl_GetNextExtendedBlock(StorageImpl* This,
463 void Storage32Impl_AddBlockDepot(StorageImpl* This,
466 ULONG Storage32Impl_AddExtBlockDepot(StorageImpl* This);
468 ULONG Storage32Impl_GetExtDepotBlock(StorageImpl* This,
471 void Storage32Impl_SetExtDepotBlock(StorageImpl* This,
474 /****************************************************************************
475 * Storage32InternalImpl definitions.
477 * Definition of the implementation structure for the IStorage32 interface.
478 * This one implements the IStorage32 interface for storage that are
479 * inside another storage.
481 struct StorageInternalImpl
483 ICOM_VFIELD(IStorage); /* Needs to be the first item in the struct
484 * since we want to cast this in a Storage32 pointer */
487 * Declare the member of the Storage32BaseImpl class to allow
488 * casting as a Storage32BaseImpl
491 struct StorageImpl* ancestorStorage;
492 ULONG rootPropertySetIndex;
493 void (*v_destructor)(struct StorageInternalImpl*);
496 * There is no specific data for this class.
501 * Method definitions for the Storage32InternalImpl class.
503 StorageInternalImpl* StorageInternalImpl_Construct(
504 StorageImpl* ancestorStorage,
505 ULONG rootTropertyIndex);
507 void StorageInternalImpl_Destroy(
508 StorageInternalImpl* This);
510 HRESULT WINAPI StorageInternalImpl_Commit(
512 DWORD grfCommitFlags); /* [in] */
514 HRESULT WINAPI StorageInternalImpl_Revert(
518 /****************************************************************************
519 * IEnumSTATSTGImpl definitions.
521 * Definition of the implementation structure for the IEnumSTATSTGImpl interface.
522 * This class allows iterating through the content of a storage and to find
523 * specific items inside it.
525 struct IEnumSTATSTGImpl
527 ICOM_VFIELD(IEnumSTATSTG); /* Needs to be the first item in the struct
528 * since we want to cast this in a IEnumSTATSTG pointer */
530 ULONG ref; /* Reference count */
531 StorageImpl* parentStorage; /* Reference to the parent storage */
532 ULONG firstPropertyNode; /* Index of the root of the storage to enumerate */
535 * The current implementation of the IEnumSTATSTGImpl class uses a stack
536 * to walk the property sets to get the content of a storage. This stack
537 * is implemented by the following 3 data members
543 #define ENUMSTATSGT_SIZE_INCREMENT 10
547 * Method definitions for the IEnumSTATSTGImpl class.
549 HRESULT WINAPI IEnumSTATSTGImpl_QueryInterface(
554 ULONG WINAPI IEnumSTATSTGImpl_AddRef(
555 IEnumSTATSTG* iface);
557 ULONG WINAPI IEnumSTATSTGImpl_Release(
558 IEnumSTATSTG* iface);
560 HRESULT WINAPI IEnumSTATSTGImpl_Next(
564 ULONG* pceltFetched);
566 HRESULT WINAPI IEnumSTATSTGImpl_Skip(
570 HRESULT WINAPI IEnumSTATSTGImpl_Reset(
571 IEnumSTATSTG* iface);
573 HRESULT WINAPI IEnumSTATSTGImpl_Clone(
575 IEnumSTATSTG** ppenum);
577 IEnumSTATSTGImpl* IEnumSTATSTGImpl_Construct(
579 ULONG firstPropertyNode);
581 void IEnumSTATSTGImpl_Destroy(
582 IEnumSTATSTGImpl* This);
584 void IEnumSTATSTGImpl_PushSearchNode(
585 IEnumSTATSTGImpl* This,
588 ULONG IEnumSTATSTGImpl_PopSearchNode(
589 IEnumSTATSTGImpl* This,
592 ULONG IEnumSTATSTGImpl_FindProperty(
593 IEnumSTATSTGImpl* This,
594 const OLECHAR* lpszPropName,
595 StgProperty* buffer);
597 INT IEnumSTATSTGImpl_FindParentProperty(
598 IEnumSTATSTGImpl *This,
600 StgProperty *currentProperty,
604 /****************************************************************************
605 * StgStreamImpl definitions.
607 * This class imlements the IStream32 inteface and represents a stream
608 * located inside a storage object.
612 ICOM_VFIELD(IStream); /* Needs to be the first item in the struct
613 * since we want to cast this in a IStream pointer */
621 * Storage that is the parent(owner) of the stream
623 StorageBaseImpl* parentStorage;
626 * Access mode of this stream.
631 * Index of the property that owns (points to) this stream.
636 * Helper variable that contains the size of the stream
638 ULARGE_INTEGER streamSize;
641 * This is the current position of the cursor in the stream
643 ULARGE_INTEGER currentPosition;
646 * The information in the stream is represented by a chain of small blocks
647 * or a chain of large blocks. Depending on the case, one of the two
648 * following variabled points to that information.
650 BlockChainStream* bigBlockChain;
651 SmallBlockChainStream* smallBlockChain;
655 * Method definition for the StgStreamImpl class.
657 StgStreamImpl* StgStreamImpl_Construct(
658 StorageBaseImpl* parentStorage,
660 ULONG ownerProperty);
662 void StgStreamImpl_Destroy(
663 StgStreamImpl* This);
665 void StgStreamImpl_OpenBlockChain(
666 StgStreamImpl* This);
668 HRESULT WINAPI StgStreamImpl_QueryInterface(
670 REFIID riid, /* [in] */
671 void** ppvObject); /* [iid_is][out] */
673 ULONG WINAPI StgStreamImpl_AddRef(
676 ULONG WINAPI StgStreamImpl_Release(
679 HRESULT WINAPI StgStreamImpl_Read(
681 void* pv, /* [length_is][size_is][out] */
683 ULONG* pcbRead); /* [out] */
685 HRESULT WINAPI StgStreamImpl_Write(
687 const void* pv, /* [size_is][in] */
689 ULONG* pcbWritten); /* [out] */
691 HRESULT WINAPI StgStreamImpl_Seek(
693 LARGE_INTEGER dlibMove, /* [in] */
694 DWORD dwOrigin, /* [in] */
695 ULARGE_INTEGER* plibNewPosition); /* [out] */
697 HRESULT WINAPI StgStreamImpl_SetSize(
699 ULARGE_INTEGER libNewSize); /* [in] */
701 HRESULT WINAPI StgStreamImpl_CopyTo(
703 IStream* pstm, /* [unique][in] */
704 ULARGE_INTEGER cb, /* [in] */
705 ULARGE_INTEGER* pcbRead, /* [out] */
706 ULARGE_INTEGER* pcbWritten); /* [out] */
708 HRESULT WINAPI StgStreamImpl_Commit(
710 DWORD grfCommitFlags); /* [in] */
712 HRESULT WINAPI StgStreamImpl_Revert(
715 HRESULT WINAPI StgStreamImpl_LockRegion(
717 ULARGE_INTEGER libOffset, /* [in] */
718 ULARGE_INTEGER cb, /* [in] */
719 DWORD dwLockType); /* [in] */
721 HRESULT WINAPI StgStreamImpl_UnlockRegion(
723 ULARGE_INTEGER libOffset, /* [in] */
724 ULARGE_INTEGER cb, /* [in] */
725 DWORD dwLockType); /* [in] */
727 HRESULT WINAPI StgStreamImpl_Stat(
729 STATSTG* pstatstg, /* [out] */
730 DWORD grfStatFlag); /* [in] */
732 HRESULT WINAPI StgStreamImpl_Clone(
734 IStream** ppstm); /* [out] */
737 /********************************************************************************
738 * The StorageUtl_ functions are miscelaneous utility functions. Most of which are
739 * abstractions used to read values from file buffers without having to worry
742 void StorageUtl_ReadWord(void* buffer, ULONG offset, WORD* value);
743 void StorageUtl_WriteWord(void* buffer, ULONG offset, WORD value);
744 void StorageUtl_ReadDWord(void* buffer, ULONG offset, DWORD* value);
745 void StorageUtl_WriteDWord(void* buffer, ULONG offset, DWORD value);
746 void StorageUtl_ReadGUID(void* buffer, ULONG offset, GUID* value);
747 void StorageUtl_WriteGUID(void* buffer, ULONG offset, GUID* value);
748 void StorageUtl_CopyPropertyToSTATSTG(STATSTG* destination,
752 /****************************************************************************
753 * BlockChainStream definitions.
755 * The BlockChainStream class is a utility class that is used to create an
756 * abstraction of the big block chains in the storage file.
758 struct BlockChainStream
760 StorageImpl* parentStorage;
761 ULONG* headOfStreamPlaceHolder;
762 ULONG ownerPropertyIndex;
763 ULONG lastBlockNoInSequence;
764 ULONG lastBlockNoInSequenceIndex;
770 * Methods for the BlockChainStream class.
772 BlockChainStream* BlockChainStream_Construct(
773 StorageImpl* parentStorage,
774 ULONG* headOfStreamPlaceHolder,
775 ULONG propertyIndex);
777 void BlockChainStream_Destroy(
778 BlockChainStream* This);
780 ULONG BlockChainStream_GetHeadOfChain(
781 BlockChainStream* This);
783 BOOL BlockChainStream_ReadAt(
784 BlockChainStream* This,
785 ULARGE_INTEGER offset,
790 BOOL BlockChainStream_WriteAt(
791 BlockChainStream* This,
792 ULARGE_INTEGER offset,
795 ULONG* bytesWritten);
797 BOOL BlockChainStream_SetSize(
798 BlockChainStream* This,
799 ULARGE_INTEGER newSize);
801 ULARGE_INTEGER BlockChainStream_GetSize(
802 BlockChainStream* This);
804 ULONG BlockChainStream_GetCount(
805 BlockChainStream* This);
807 /****************************************************************************
808 * SmallBlockChainStream definitions.
810 * The SmallBlockChainStream class is a utility class that is used to create an
811 * abstraction of the small block chains in the storage file.
813 struct SmallBlockChainStream
815 StorageImpl* parentStorage;
816 ULONG ownerPropertyIndex;
820 * Methods of the SmallBlockChainStream class.
822 SmallBlockChainStream* SmallBlockChainStream_Construct(
823 StorageImpl* parentStorage,
824 ULONG propertyIndex);
826 void SmallBlockChainStream_Destroy(
827 SmallBlockChainStream* This);
829 ULONG SmallBlockChainStream_GetHeadOfChain(
830 SmallBlockChainStream* This);
832 ULONG SmallBlockChainStream_GetNextBlockInChain(
833 SmallBlockChainStream* This,
836 void SmallBlockChainStream_SetNextBlockInChain(
837 SmallBlockChainStream* This,
841 void SmallBlockChainStream_FreeBlock(
842 SmallBlockChainStream* This,
845 ULONG SmallBlockChainStream_GetNextFreeBlock(
846 SmallBlockChainStream* This);
848 BOOL SmallBlockChainStream_ReadAt(
849 SmallBlockChainStream* This,
850 ULARGE_INTEGER offset,
855 BOOL SmallBlockChainStream_WriteAt(
856 SmallBlockChainStream* This,
857 ULARGE_INTEGER offset,
860 ULONG* bytesWritten);
862 BOOL SmallBlockChainStream_SetSize(
863 SmallBlockChainStream* This,
864 ULARGE_INTEGER newSize);
866 ULARGE_INTEGER SmallBlockChainStream_GetSize(
867 SmallBlockChainStream* This);
869 ULONG SmallBlockChainStream_GetCount(
870 SmallBlockChainStream* This);
873 #endif /* __STORAGE32_H__ */