Changeset 3167 for trunk/src/ole32/storage.h
- Timestamp:
- Mar 19, 2000, 4:35:32 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/ole32/storage.h (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ole32/storage.h
r1033 r3167 1 /* $Id: storage.h,v 1. 1 1999-09-24 21:49:45 davidr Exp $ */1 /* $Id: storage.h,v 1.2 2000-03-19 15:35:15 davidr Exp $ */ 2 2 /* 3 3 * Compound Storage (32 bit version) … … 89 89 static const BYTE STORAGE_magic[8] ={0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1}; 90 90 static const BYTE STORAGE_oldmagic[8] ={0xd0,0xcf,0x11,0xe0,0x0e,0x11,0xfc,0x0d}; 91 static const BYTE STORAGE_notmagic[8]={0x0e,0x11,0xfc,0x0d,0xd0,0xcf,0x11,0xe0};92 91 93 92 /* … … 138 137 typedef struct BigBlockFile BigBlockFile,*LPBIGBLOCKFILE; 139 138 typedef struct MappedPage MappedPage,*LPMAPPEDPAGE; 140 typedef struct BigBlock BigBlock,*LPBIGBLOCK;141 139 142 140 struct BigBlockFile … … 148 146 HANDLE hfilemap; 149 147 DWORD flProtect; 150 MappedPage *maplisthead; 148 MappedPage *maplist; 149 MappedPage *victimhead, *victimtail; 150 ULONG num_victim_pages; 151 151 ILockBytes *pLkbyt; 152 152 HGLOBAL hbytearray; 153 153 LPVOID pbytearray; 154 BigBlock *headblock;155 154 }; 156 155 … … 182 181 struct StorageBaseImpl 183 182 { 184 ICOM_V TABLE(IStorage)* lpvtbl; /* Needs to be the first item in the stuct185 * since we want to cast this in a Storage32 pointer */183 ICOM_VFIELD(IStorage); /* Needs to be the first item in the stuct 184 * since we want to cast this in a Storage32 pointer */ 186 185 187 186 /* … … 276 275 struct StorageImpl 277 276 { 278 ICOM_V TABLE(IStorage) *lpvtbl; /* Needs to be the first item in the stuct277 ICOM_VFIELD(IStorage); /* Needs to be the first item in the stuct 279 278 * since we want to cast this in a Storage32 pointer */ 280 279 … … 323 322 */ 324 323 BigBlockFile* bigBlockFile; 324 325 /*****************************************************************************************/ 326 /* warning: this is a temp fix for bugs related to save file to mounted network drive */ 327 /* TBD: these lines should be removed when we will get the final fix */ 328 /*****************************************************************************************/ 329 WCHAR* srcDestFiles[2]; 330 /*****************************************************************************************/ 325 331 }; 326 332 … … 378 384 379 385 HRESULT StorageImpl_Construct( 380 StorageImpl* This, 381 HANDLE hFile, 382 ILockBytes* pLkbyt, 383 DWORD openFlags, 384 BOOL fileBased); 386 StorageImpl* This, 387 HANDLE hFile, 388 ILockBytes* pLkbyt, 389 DWORD openFlags, 390 BOOL fileBased, 391 BOOL fileCreate); 385 392 386 393 BOOL StorageImpl_ReadBigBlock( … … 465 472 struct StorageInternalImpl 466 473 { 467 ICOM_V TABLE(IStorage) *lpvtbl; /* Needs to be the first item in the stuct468 * since we want to cast this in a Storage32 pointer */474 ICOM_VFIELD(IStorage); /* Needs to be the first item in the stuct 475 * since we want to cast this in a Storage32 pointer */ 469 476 470 477 /* … … 509 516 struct IEnumSTATSTGImpl 510 517 { 511 ICOM_V TABLE(IEnumSTATSTG) *lpvtbl; /* Needs to be the first item in the stuct518 ICOM_VFIELD(IEnumSTATSTG); /* Needs to be the first item in the stuct 512 519 * since we want to cast this in a IEnumSTATSTG pointer */ 513 520 … … 594 601 struct StgStreamImpl 595 602 { 596 ICOM_V TABLE(IStream) *lpvtbl; /* Needs to be the first item in the stuct603 ICOM_VFIELD(IStream); /* Needs to be the first item in the stuct 597 604 * since we want to cast this in a IStream pointer */ 598 605 … … 606 613 */ 607 614 StorageBaseImpl* parentStorage; 615 616 /* 617 * Access mode of this stream. 618 */ 619 DWORD grfMode; 608 620 609 621 /* … … 637 649 StgStreamImpl* StgStreamImpl_Construct( 638 650 StorageBaseImpl* parentStorage, 639 ULONG ownerProperty); 651 DWORD grfMode, 652 ULONG ownerProperty); 640 653 641 654 void StgStreamImpl_Destroy( … … 723 736 void StorageUtl_ReadDWord(void* buffer, ULONG offset, DWORD* value); 724 737 void StorageUtl_WriteDWord(void* buffer, ULONG offset, DWORD value); 738 void StorageUtl_ReadDWords(void *buffer, ULONG offset, DWORD *values, 739 ULONG len); 725 740 void StorageUtl_ReadGUID(void* buffer, ULONG offset, GUID* value); 726 741 void StorageUtl_WriteGUID(void* buffer, ULONG offset, GUID* value); … … 744 759 ULONG tailIndex; 745 760 ULONG numBlocks; 761 BOOL lazyInitComplete; 746 762 }; 747 763
Note:
See TracChangeset
for help on using the changeset viewer.
