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__
19 * Definitions for the file format offsets.
21 static const ULONG OFFSET_BIGBLOCKSIZEBITS
= 0x0000001e;
22 static const ULONG OFFSET_SMALLBLOCKSIZEBITS
= 0x00000020;
23 static const ULONG OFFSET_BBDEPOTCOUNT
= 0x0000002C;
24 static const ULONG OFFSET_ROOTSTARTBLOCK
= 0x00000030;
25 static const ULONG OFFSET_SBDEPOTSTART
= 0x0000003C;
26 static const ULONG OFFSET_EXTBBDEPOTSTART
= 0x00000044;
27 static const ULONG OFFSET_EXTBBDEPOTCOUNT
= 0x00000048;
28 static const ULONG OFFSET_BBDEPOTSTART
= 0x0000004C;
29 static const ULONG OFFSET_PS_NAME
= 0x00000000;
30 static const ULONG OFFSET_PS_NAMELENGTH
= 0x00000040;
31 static const ULONG OFFSET_PS_PROPERTYTYPE
= 0x00000042;
32 static const ULONG OFFSET_PS_BLOCKTYPE
= 0x00000043;
33 static const ULONG OFFSET_PS_PREVIOUSPROP
= 0x00000044;
34 static const ULONG OFFSET_PS_NEXTPROP
= 0x00000048;
35 static const ULONG OFFSET_PS_DIRPROP
= 0x0000004C;
36 static const ULONG OFFSET_PS_GUID
= 0x00000050;
37 static const ULONG OFFSET_PS_TSS1
= 0x00000064;
38 static const ULONG OFFSET_PS_TSD1
= 0x00000068;
39 static const ULONG OFFSET_PS_TSS2
= 0x0000006C;
40 static const ULONG OFFSET_PS_TSD2
= 0x00000070;
41 static const ULONG OFFSET_PS_STARTBLOCK
= 0x00000074;
42 static const ULONG OFFSET_PS_SIZE
= 0x00000078;
43 static const WORD DEF_BIG_BLOCK_SIZE_BITS
= 0x0009;
44 static const WORD DEF_SMALL_BLOCK_SIZE_BITS
= 0x0006;
45 static const WORD DEF_BIG_BLOCK_SIZE
= 0x0200;
46 static const WORD DEF_SMALL_BLOCK_SIZE
= 0x0040;
47 static const ULONG BLOCK_SPECIAL
= 0xFFFFFFFD;
48 static const ULONG BLOCK_END_OF_CHAIN
= 0xFFFFFFFE;
49 static const ULONG BLOCK_UNUSED
= 0xFFFFFFFF;
50 static const ULONG PROPERTY_NULL
= 0xFFFFFFFF;
52 #define PROPERTY_NAME_MAX_LEN 0x20
53 #define PROPERTY_NAME_BUFFER_LEN 0x40
55 #define PROPSET_BLOCK_SIZE 0x00000080
58 * Property type of relation
60 #define PROPERTY_RELATION_PREVIOUS 0
61 #define PROPERTY_RELATION_NEXT 1
62 #define PROPERTY_RELATION_DIR 2
65 * Property type constants
67 #define PROPTYPE_STORAGE 0x01
68 #define PROPTYPE_STREAM 0x02
69 #define PROPTYPE_ROOT 0x05
72 * These defines assume a hardcoded blocksize. The code will assert
73 * if the blocksize is different. Some changes will have to be done if it
76 #define BIG_BLOCK_SIZE 0x200
77 #define COUNT_BBDEPOTINHEADER 109
78 #define LIMIT_TO_USE_SMALL_BLOCK 0x1000
81 * These are signatures to detect the type of Document file.
83 static const BYTE STORAGE_magic
[8] ={0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1};
84 static const BYTE STORAGE_oldmagic
[8] ={0xd0,0xcf,0x11,0xe0,0x0e,0x11,0xfc,0x0d};
87 * Forward declarations of all the structures used by the storage
90 typedef struct Storage32BaseImpl Storage32BaseImpl
;
91 typedef struct Storage32Impl Storage32Impl
;
92 typedef struct Storage32InternalImpl Storage32InternalImpl
;
93 typedef struct BlockChainStream BlockChainStream
;
94 typedef struct SmallBlockChainStream SmallBlockChainStream
;
95 typedef struct IEnumSTATSTGImpl IEnumSTATSTGImpl
;
96 typedef struct StgProperty StgProperty
;
97 typedef struct StgStreamImpl StgStreamImpl
;
100 * This utility structure is used to read/write the information in a storage
105 WCHAR name
[PROPERTY_NAME_MAX_LEN
];
106 WORD sizeOfNameString
;
108 ULONG previousProperty
;
111 GUID propertyUniqueID
;
120 /*************************************************************************
121 * Big Block File support
123 * The big block file is an abstraction of a flat file separated in
124 * same sized blocks. The implementation for the methods described in
125 * this section appear in stg_bigblockfile.c
129 * Declaration of the data structures
131 typedef struct BigBlockFile BigBlockFile
,*LPBIGBLOCKFILE
;
132 typedef struct MappedPage MappedPage
,*LPMAPPEDPAGE
;
133 typedef struct BigBlock BigBlock
,*LPBIGBLOCK
;
137 ULARGE_INTEGER filesize
;
142 MappedPage
*headmap_ro
;
143 MappedPage
*headmap_w
;
148 * Declaration of the functions used to manipulate the BigBlockFile
151 BigBlockFile
* BIGBLOCKFILE_Construct(HANDLE32 hFile
,
154 void BIGBLOCKFILE_Destructor(LPBIGBLOCKFILE This
);
155 void* BIGBLOCKFILE_GetBigBlock(LPBIGBLOCKFILE This
, ULONG index
);
156 void* BIGBLOCKFILE_GetROBigBlock(LPBIGBLOCKFILE This
, ULONG index
);
157 void BIGBLOCKFILE_ReleaseBigBlock(LPBIGBLOCKFILE This
, void *pBlock
);
158 void BIGBLOCKFILE_SetSize(LPBIGBLOCKFILE This
, ULARGE_INTEGER newSize
);
159 ULARGE_INTEGER
BIGBLOCKFILE_GetSize(LPBIGBLOCKFILE This
);
161 /****************************************************************************
162 * Storage32BaseImpl definitions.
164 * This stucture defines the base information contained in all implementations
165 * of IStorage32 contained in this filee storage implementation.
167 * In OOP terms, this is the base class for all the IStorage32 implementations
168 * contained in this file.
170 struct Storage32BaseImpl
172 ICOM_VTABLE(IStorage32
)* lpvtbl
; /* Needs to be the first item in the stuct
173 * since we want to cast this in a Storage32 pointer */
176 * Reference count of this object
181 * Ancestor storage (top level)
183 Storage32Impl
* ancestorStorage
;
186 * Index of the property for the root of
189 ULONG rootPropertySetIndex
;
192 * virtual Destructor method.
194 void (*v_destructor
)(Storage32BaseImpl
*);
199 * Prototypes for the methods of the Storage32BaseImpl class.
201 HRESULT WINAPI
Storage32BaseImpl_QueryInterface(
206 ULONG WINAPI
Storage32BaseImpl_AddRef(
209 ULONG WINAPI
Storage32BaseImpl_Release(
212 HRESULT WINAPI
Storage32BaseImpl_OpenStream(
214 const OLECHAR32
* pwcsName
, /* [string][in] */
215 void* reserved1
, /* [unique][in] */
216 DWORD grfMode
, /* [in] */
217 DWORD reserved2
, /* [in] */
218 IStream32
** ppstm
); /* [out] */
220 HRESULT WINAPI
Storage32BaseImpl_OpenStorage(
222 const OLECHAR32
* pwcsName
, /* [string][unique][in] */
223 IStorage32
* pstgPriority
, /* [unique][in] */
224 DWORD grfMode
, /* [in] */
225 SNB32 snbExclude
, /* [unique][in] */
226 DWORD reserved
, /* [in] */
227 IStorage32
** ppstg
); /* [out] */
229 HRESULT WINAPI
Storage32BaseImpl_EnumElements(
231 DWORD reserved1
, /* [in] */
232 void* reserved2
, /* [size_is][unique][in] */
233 DWORD reserved3
, /* [in] */
234 IEnumSTATSTG
** ppenum
); /* [out] */
236 HRESULT WINAPI
Storage32BaseImpl_Stat(
238 STATSTG
* pstatstg
, /* [out] */
239 DWORD grfStatFlag
); /* [in] */
241 HRESULT WINAPI
Storage32BaseImpl_RenameElement(
243 const OLECHAR32
* pwcsOldName
, /* [string][in] */
244 const OLECHAR32
* pwcsNewName
); /* [string][in] */
246 HRESULT WINAPI
Storage32BaseImpl_CreateStream(
248 const OLECHAR32
* pwcsName
, /* [string][in] */
249 DWORD grfMode
, /* [in] */
250 DWORD reserved1
, /* [in] */
251 DWORD reserved2
, /* [in] */
252 IStream32
** ppstm
); /* [out] */
254 HRESULT WINAPI
Storage32BaseImpl_SetClass(
256 REFCLSID clsid
); /* [in] */
258 /****************************************************************************
259 * Storage32Impl definitions.
261 * This implementation of the IStorage32 interface represents a root
262 * storage. Basically, a document file.
266 ICOM_VTABLE(IStorage32
) *lpvtbl
; /* Needs to be the first item in the stuct
267 * since we want to cast this in a Storage32 pointer */
270 * Declare the member of the Storage32BaseImpl class to allow
271 * casting as a Storage32BaseImpl
274 struct Storage32Impl
* ancestorStorage
;
275 ULONG rootPropertySetIndex
;
276 void (*v_destructor
)(struct Storage32Impl
*);
279 * The following data members are specific to the Storage32Impl
282 HANDLE32 hFile
; /* Physical support for the Docfile */
287 WORD bigBlockSizeBits
;
288 WORD smallBlockSizeBits
;
290 ULONG smallBlockSize
;
291 ULONG bigBlockDepotCount
;
292 ULONG rootStartBlock
;
293 ULONG smallBlockDepotStart
;
294 ULONG extBigBlockDepotStart
;
295 ULONG extBigBlockDepotCount
;
296 ULONG bigBlockDepotStart
[COUNT_BBDEPOTINHEADER
];
299 * Abstraction of the big block chains for the chains of the header.
301 BlockChainStream
* rootBlockChain
;
302 BlockChainStream
* smallBlockDepotChain
;
303 BlockChainStream
* smallBlockRootChain
;
306 * Pointer to the big block file abstraction
308 BigBlockFile
* bigBlockFile
;
312 * Method declaration for the Storage32Impl class
315 HRESULT WINAPI
Storage32Impl_CreateStorage(
317 const OLECHAR32
* pwcsName
, /* [string][in] */
318 DWORD grfMode
, /* [in] */
319 DWORD dwStgFmt
, /* [in] */
320 DWORD reserved2
, /* [in] */
321 IStorage32
** ppstg
); /* [out] */
323 HRESULT WINAPI
Storage32Impl_CopyTo(
325 DWORD ciidExclude
, /* [in] */
326 const IID
* rgiidExclude
, /* [size_is][unique][in] */
327 SNB32 snbExclude
, /* [unique][in] */
328 IStorage32
* pstgDest
); /* [unique][in] */
330 HRESULT WINAPI
Storage32Impl_MoveElementTo(
332 const OLECHAR32
* pwcsName
, /* [string][in] */
333 IStorage32
* pstgDest
, /* [unique][in] */
334 const OLECHAR32
* pwcsNewName
, /* [string][in] */
335 DWORD grfFlags
); /* [in] */
337 HRESULT WINAPI
Storage32Impl_Commit(
339 DWORD grfCommitFlags
); /* [in] */
341 HRESULT WINAPI
Storage32Impl_Revert(
344 HRESULT WINAPI
Storage32Impl_DestroyElement(
346 const OLECHAR32
* pwcsName
); /* [string][in] */
348 HRESULT WINAPI
Storage32Impl_SetElementTimes(
350 const OLECHAR32
* pwcsName
, /* [string][in] */
351 const FILETIME
* pctime
, /* [in] */
352 const FILETIME
* patime
, /* [in] */
353 const FILETIME
* pmtime
); /* [in] */
355 HRESULT WINAPI
Storage32Impl_SetStateBits(
357 DWORD grfStateBits
, /* [in] */
358 DWORD grfMask
); /* [in] */
360 void Storage32Impl_Destroy(
361 Storage32Impl
* This
);
363 HRESULT
Storage32Impl_Construct(
368 BOOL32
Storage32Impl_ReadBigBlock(
373 BOOL32
Storage32Impl_WriteBigBlock(
378 void* Storage32Impl_GetROBigBlock(
382 void* Storage32Impl_GetBigBlock(
386 void Storage32Impl_ReleaseBigBlock(
390 ULONG
Storage32Impl_GetNextFreeBigBlock(
391 Storage32Impl
* This
);
393 void Storage32Impl_FreeBigBlock(
397 ULONG
Storage32Impl_GetNextBlockInChain(
401 void Storage32Impl_SetNextBlockInChain(
406 HRESULT
Storage32Impl_LoadFileHeader(
407 Storage32Impl
* This
);
409 void Storage32Impl_SaveFileHeader(
410 Storage32Impl
* This
);
412 BOOL32
Storage32Impl_ReadProperty(
415 StgProperty
* buffer
);
417 BOOL32
Storage32Impl_WriteProperty(
420 StgProperty
* buffer
);
422 BlockChainStream
* Storage32Impl_SmallBlocksToBigBlocks(
424 SmallBlockChainStream
** ppsbChain
);
426 /****************************************************************************
427 * Storage32InternalImpl definitions.
429 * Definition of the implementation structure for the IStorage32 interface.
430 * This one implements the IStorage32 interface for storage that are
431 * inside another storage.
433 struct Storage32InternalImpl
435 ICOM_VTABLE(IStorage32
) *lpvtbl
; /* Needs to be the first item in the stuct
436 * since we want to cast this in a Storage32 pointer */
439 * Declare the member of the Storage32BaseImpl class to allow
440 * casting as a Storage32BaseImpl
443 struct Storage32Impl
* ancestorStorage
;
444 ULONG rootPropertySetIndex
;
445 void (*v_destructor
)(struct Storage32InternalImpl
*);
448 * There is no specific data for this class.
453 * Method definitions for the Storage32InternalImpl class.
455 Storage32InternalImpl
* Storage32InternalImpl_Construct(
456 Storage32Impl
* ancestorStorage
,
457 ULONG rootTropertyIndex
);
459 void Storage32InternalImpl_Destroy(
460 Storage32InternalImpl
* This
);
462 HRESULT WINAPI
Storage32InternalImpl_Commit(
464 DWORD grfCommitFlags
); /* [in] */
466 HRESULT WINAPI
Storage32InternalImpl_Revert(
470 /****************************************************************************
471 * IEnumSTATSTGImpl definitions.
473 * Definition of the implementation structure for the IEnumSTATSTGImpl interface.
474 * This class allows iterating through the content of a storage and to find
475 * specific items inside it.
477 struct IEnumSTATSTGImpl
479 ICOM_VTABLE(IEnumSTATSTG
) *lpvtbl
; /* Needs to be the first item in the stuct
480 * since we want to cast this in a IEnumSTATSTG pointer */
482 ULONG ref
; /* Reference count */
483 Storage32Impl
* parentStorage
; /* Reference to the parent storage */
484 ULONG firstPropertyNode
; /* Index of the root of the storage to enumerate */
487 * The current implementation of the IEnumSTATSTGImpl class uses a stack
488 * to walk the property sets to get the content of a storage. This stack
489 * is implemented by the following 3 data members
495 #define ENUMSTATSGT_SIZE_INCREMENT 10
499 * Method definitions for the IEnumSTATSTGImpl class.
501 HRESULT WINAPI
IEnumSTATSTGImpl_QueryInterface(
506 ULONG WINAPI
IEnumSTATSTGImpl_AddRef(
507 IEnumSTATSTG
* iface
);
509 ULONG WINAPI
IEnumSTATSTGImpl_Release(
510 IEnumSTATSTG
* iface
);
512 HRESULT WINAPI
IEnumSTATSTGImpl_Next(
516 ULONG
* pceltFetched
);
518 HRESULT WINAPI
IEnumSTATSTGImpl_Skip(
522 HRESULT WINAPI
IEnumSTATSTGImpl_Reset(
523 IEnumSTATSTG
* iface
);
525 HRESULT WINAPI
IEnumSTATSTGImpl_Clone(
527 IEnumSTATSTG
** ppenum
);
529 IEnumSTATSTGImpl
* IEnumSTATSTGImpl_Construct(
531 ULONG firstPropertyNode
);
533 void IEnumSTATSTGImpl_Destroy(
534 IEnumSTATSTGImpl
* This
);
536 void IEnumSTATSTGImpl_PushSearchNode(
537 IEnumSTATSTGImpl
* This
,
540 ULONG
IEnumSTATSTGImpl_PopSearchNode(
541 IEnumSTATSTGImpl
* This
,
544 ULONG
IEnumSTATSTGImpl_FindProperty(
545 IEnumSTATSTGImpl
* This
,
546 const OLECHAR32
* lpszPropName
,
547 StgProperty
* buffer
);
549 INT32
IEnumSTATSTGImpl_FindParentProperty(
550 IEnumSTATSTGImpl
*This
,
552 StgProperty
*currentProperty
,
556 /****************************************************************************
557 * StgStreamImpl definitions.
559 * This class imlements the IStream32 inteface and represents a stream
560 * located inside a storage object.
564 ICOM_VTABLE(IStream32
) *lpvtbl
; /* Needs to be the first item in the stuct
565 * since we want to cast this in a IStream pointer */
573 * Storage that is the parent(owner) of the stream
575 Storage32BaseImpl
* parentStorage
;
578 * Index of the property that owns (points to) this stream.
583 * Helper variable that contains the size of the stream
585 ULARGE_INTEGER streamSize
;
588 * This is the current position of the cursor in the stream
590 ULARGE_INTEGER currentPosition
;
593 * The information in the stream is represented by a chain of small blocks
594 * or a chain of large blocks. Depending on the case, one of the two
595 * following variabled points to that information.
597 BlockChainStream
* bigBlockChain
;
598 SmallBlockChainStream
* smallBlockChain
;
603 * Method definition for the StgStreamImpl class.
605 StgStreamImpl
* StgStreamImpl_Construct(
606 Storage32BaseImpl
* parentStorage
,
607 ULONG ownerProperty
);
609 void StgStreamImpl_Destroy(
610 StgStreamImpl
* This
);
612 void StgStreamImpl_OpenBlockChain(
613 StgStreamImpl
* This
);
615 HRESULT WINAPI
StgStreamImpl_QueryInterface(
617 REFIID riid
, /* [in] */
618 void** ppvObject
); /* [iid_is][out] */
620 ULONG WINAPI
StgStreamImpl_AddRef(
623 ULONG WINAPI
StgStreamImpl_Release(
626 HRESULT WINAPI
StgStreamImpl_Read(
628 void* pv
, /* [length_is][size_is][out] */
630 ULONG
* pcbRead
); /* [out] */
632 HRESULT WINAPI
StgStreamImpl_Write(
634 const void* pv
, /* [size_is][in] */
636 ULONG
* pcbWritten
); /* [out] */
638 HRESULT WINAPI
StgStreamImpl_Seek(
640 LARGE_INTEGER dlibMove
, /* [in] */
641 DWORD dwOrigin
, /* [in] */
642 ULARGE_INTEGER
* plibNewPosition
); /* [out] */
644 HRESULT WINAPI
StgStreamImpl_SetSize(
646 ULARGE_INTEGER libNewSize
); /* [in] */
648 HRESULT WINAPI
StgStreamImpl_CopyTo(
650 IStream32
* pstm
, /* [unique][in] */
651 ULARGE_INTEGER cb
, /* [in] */
652 ULARGE_INTEGER
* pcbRead
, /* [out] */
653 ULARGE_INTEGER
* pcbWritten
); /* [out] */
655 HRESULT WINAPI
StgStreamImpl_Commit(
657 DWORD grfCommitFlags
); /* [in] */
659 HRESULT WINAPI
StgStreamImpl_Revert(
662 HRESULT WINAPI
StgStreamImpl_LockRegion(
664 ULARGE_INTEGER libOffset
, /* [in] */
665 ULARGE_INTEGER cb
, /* [in] */
666 DWORD dwLockType
); /* [in] */
668 HRESULT WINAPI
StgStreamImpl_UnlockRegion(
670 ULARGE_INTEGER libOffset
, /* [in] */
671 ULARGE_INTEGER cb
, /* [in] */
672 DWORD dwLockType
); /* [in] */
674 HRESULT WINAPI
StgStreamImpl_Stat(
676 STATSTG
* pstatstg
, /* [out] */
677 DWORD grfStatFlag
); /* [in] */
679 HRESULT WINAPI
StgStreamImpl_Clone(
681 IStream32
** ppstm
); /* [out] */
684 /********************************************************************************
685 * The StorageUtl_ functions are miscelaneous utility functions. Most of which are
686 * abstractions used to read values from file buffers without having to worry
689 void StorageUtl_ReadWord(void* buffer
, ULONG offset
, WORD
* value
);
690 void StorageUtl_WriteWord(void* buffer
, ULONG offset
, WORD value
);
691 void StorageUtl_ReadDWord(void* buffer
, ULONG offset
, DWORD
* value
);
692 void StorageUtl_WriteDWord(void* buffer
, ULONG offset
, DWORD value
);
693 void StorageUtl_ReadGUID(void* buffer
, ULONG offset
, GUID
* value
);
694 void StorageUtl_WriteGUID(void* buffer
, ULONG offset
, GUID
* value
);
695 void StorageUtl_CopyPropertyToSTATSTG(STATSTG
* destination
,
699 /****************************************************************************
700 * BlockChainStream definitions.
702 * The BlockChainStream class is a utility class that is used to create an
703 * abstraction of the big block chains in the storage file.
705 struct BlockChainStream
707 Storage32Impl
* parentStorage
;
708 ULONG
* headOfStreamPlaceHolder
;
709 ULONG ownerPropertyIndex
;
713 * Methods for the BlockChainStream class.
715 BlockChainStream
* BlockChainStream_Construct(
716 Storage32Impl
* parentStorage
,
717 ULONG
* headOfStreamPlaceHolder
,
718 ULONG propertyIndex
);
720 void BlockChainStream_Destroy(
721 BlockChainStream
* This
);
723 ULONG
BlockChainStream_GetHeadOfChain(
724 BlockChainStream
* This
);
726 BOOL32
BlockChainStream_ReadAt(
727 BlockChainStream
* This
,
728 ULARGE_INTEGER offset
,
733 BOOL32
BlockChainStream_WriteAt(
734 BlockChainStream
* This
,
735 ULARGE_INTEGER offset
,
738 ULONG
* bytesWritten
);
740 BOOL32
BlockChainStream_SetSize(
741 BlockChainStream
* This
,
742 ULARGE_INTEGER newSize
);
744 ULARGE_INTEGER
BlockChainStream_GetSize(
745 BlockChainStream
* This
);
747 ULONG
BlockChainStream_GetCount(
748 BlockChainStream
* This
);
750 /****************************************************************************
751 * SmallBlockChainStream definitions.
753 * The SmallBlockChainStream class is a utility class that is used to create an
754 * abstraction of the small block chains in the storage file.
756 struct SmallBlockChainStream
758 Storage32Impl
* parentStorage
;
759 ULONG ownerPropertyIndex
;
763 * Methods of the SmallBlockChainStream class.
765 SmallBlockChainStream
* SmallBlockChainStream_Construct(
766 Storage32Impl
* parentStorage
,
767 ULONG propertyIndex
);
769 void SmallBlockChainStream_Destroy(
770 SmallBlockChainStream
* This
);
772 ULONG
SmallBlockChainStream_GetHeadOfChain(
773 SmallBlockChainStream
* This
);
775 ULONG
SmallBlockChainStream_GetNextBlockInChain(
776 SmallBlockChainStream
* This
,
779 void SmallBlockChainStream_SetNextBlockInChain(
780 SmallBlockChainStream
* This
,
784 void SmallBlockChainStream_FreeBlock(
785 SmallBlockChainStream
* This
,
788 ULONG
SmallBlockChainStream_GetNextFreeBlock(
789 SmallBlockChainStream
* This
);
791 BOOL32
SmallBlockChainStream_ReadAt(
792 SmallBlockChainStream
* This
,
793 ULARGE_INTEGER offset
,
798 BOOL32
SmallBlockChainStream_WriteAt(
799 SmallBlockChainStream
* This
,
800 ULARGE_INTEGER offset
,
803 ULONG
* bytesWritten
);
805 BOOL32
SmallBlockChainStream_SetSize(
806 SmallBlockChainStream
* This
,
807 ULARGE_INTEGER newSize
);
809 ULARGE_INTEGER
SmallBlockChainStream_GetSize(
810 SmallBlockChainStream
* This
);
812 ULONG
SmallBlockChainStream_GetCount(
813 SmallBlockChainStream
* This
);
816 #endif __STORAGE32_H__