Ignore:
Timestamp:
Nov 12, 2002, 6:07:48 PM (23 years ago)
Author:
sandervl
Message:

Wine resync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ole32/storage32.h

    r8441 r9400  
    77 *
    88 * This include file contains definitions of types and function
    9  * prototypes that are used in the many files implementing the 
     9 * prototypes that are used in the many files implementing the
    1010 * storage functionality
    1111 *
     
    4343static const ULONG OFFSET_ROOTSTARTBLOCK     = 0x00000030;
    4444static const ULONG OFFSET_SBDEPOTSTART       = 0x0000003C;
     45static const ULONG OFFSET_SBDEPOTCOUNT       = 0x00000040;
    4546static const ULONG OFFSET_EXTBBDEPOTSTART    = 0x00000044;
    4647static const ULONG OFFSET_EXTBBDEPOTCOUNT    = 0x00000048;
     
    5051static const ULONG OFFSET_PS_PROPERTYTYPE    = 0x00000042;
    5152static const ULONG OFFSET_PS_PREVIOUSPROP    = 0x00000044;
    52 static const ULONG OFFSET_PS_NEXTPROP        = 0x00000048;   
     53static const ULONG OFFSET_PS_NEXTPROP        = 0x00000048;
    5354static const ULONG OFFSET_PS_DIRPROP         = 0x0000004C;
    5455static const ULONG OFFSET_PS_GUID            = 0x00000050;
     
    5758static const ULONG OFFSET_PS_TSS2            = 0x0000006C;
    5859static const ULONG OFFSET_PS_TSD2            = 0x00000070;
    59 static const ULONG OFFSET_PS_STARTBLOCK      = 0x00000074; 
    60 static const ULONG OFFSET_PS_SIZE            = 0x00000078; 
     60static const ULONG OFFSET_PS_STARTBLOCK      = 0x00000074;
     61static const ULONG OFFSET_PS_SIZE            = 0x00000078;
    6162static const WORD  DEF_BIG_BLOCK_SIZE_BITS   = 0x0009;
    6263static const WORD  DEF_SMALL_BLOCK_SIZE_BITS = 0x0006;
     
    7071
    7172#define PROPERTY_NAME_MAX_LEN    0x20
    72 #define PROPERTY_NAME_BUFFER_LEN 0x40             
     73#define PROPERTY_NAME_BUFFER_LEN 0x40
    7374
    7475#define PROPSET_BLOCK_SIZE 0x00000080
     
    142143 *
    143144 * The big block file is an abstraction of a flat file separated in
    144  * same sized blocks. The implementation for the methods described in 
     145 * same sized blocks. The implementation for the methods described in
    145146 * this section appear in stg_bigblockfile.c
    146147 */
     
    209210   */
    210211  ULONG ref;
    211  
    212   /* 
    213    * Ancestor storage (top level) 
    214    */
    215   StorageImpl* ancestorStorage;         
    216  
     212
     213  /*
     214   * Ancestor storage (top level)
     215   */
     216  StorageImpl* ancestorStorage;
     217
    217218  /*
    218219   * Index of the property for the root of
     
    220221   */
    221222  ULONG rootPropertySetIndex;
    222  
    223   /* 
     223
     224  /*
    224225   * virtual Destructor method.
    225226   */
     
    235236            REFIID             riid,
    236237            void**             ppvObject);
    237        
    238 ULONG WINAPI StorageBaseImpl_AddRef( 
     238
     239ULONG WINAPI StorageBaseImpl_AddRef(
    239240            IStorage*        iface);
    240        
    241 ULONG WINAPI StorageBaseImpl_Release( 
     241
     242ULONG WINAPI StorageBaseImpl_Release(
    242243            IStorage*        iface);
    243        
    244 HRESULT WINAPI StorageBaseImpl_OpenStream( 
     244
     245HRESULT WINAPI StorageBaseImpl_OpenStream(
    245246            IStorage*        iface,
    246247            const OLECHAR*   pwcsName,  /* [string][in] */
    247248            void*              reserved1, /* [unique][in] */
    248             DWORD              grfMode,   /* [in] */       
    249             DWORD              reserved2, /* [in] */       
    250             IStream**        ppstm);    /* [out] */   
    251    
    252 HRESULT WINAPI StorageBaseImpl_OpenStorage( 
     249            DWORD              grfMode,   /* [in] */
     250            DWORD              reserved2, /* [in] */
     251            IStream**        ppstm);    /* [out] */
     252
     253HRESULT WINAPI StorageBaseImpl_OpenStorage(
    253254            IStorage*        iface,
    254             const OLECHAR*   pwcsName,      /* [string][unique][in] */ 
    255             IStorage*        pstgPriority,  /* [unique][in] */         
    256             DWORD              grfMode,       /* [in] */                 
    257             SNB              snbExclude,    /* [unique][in] */         
    258             DWORD              reserved,      /* [in] */                 
    259             IStorage**       ppstg);        /* [out] */               
    260          
    261 HRESULT WINAPI StorageBaseImpl_EnumElements( 
     255            const OLECHAR*   pwcsName,      /* [string][unique][in] */
     256            IStorage*        pstgPriority,  /* [unique][in] */
     257            DWORD              grfMode,       /* [in] */
     258            SNB              snbExclude,    /* [unique][in] */
     259            DWORD              reserved,      /* [in] */
     260            IStorage**       ppstg);        /* [out] */
     261
     262HRESULT WINAPI StorageBaseImpl_EnumElements(
    262263            IStorage*        iface,
    263             DWORD              reserved1, /* [in] */                 
    264             void*              reserved2, /* [size_is][unique][in] */ 
    265             DWORD              reserved3, /* [in] */                 
    266             IEnumSTATSTG**     ppenum);   /* [out] */   
    267 
    268 HRESULT WINAPI StorageBaseImpl_Stat( 
     264            DWORD              reserved1, /* [in] */
     265            void*              reserved2, /* [size_is][unique][in] */
     266            DWORD              reserved3, /* [in] */
     267            IEnumSTATSTG**     ppenum);   /* [out] */
     268
     269HRESULT WINAPI StorageBaseImpl_Stat(
    269270            IStorage*        iface,
    270             STATSTG*           pstatstg,     /* [out] */ 
    271             DWORD              grfStatFlag); /* [in] */ 
     271            STATSTG*           pstatstg,     /* [out] */
     272            DWORD              grfStatFlag); /* [in] */
    272273
    273274HRESULT WINAPI StorageBaseImpl_RenameElement(
     
    304305   */
    305306  ULONG                 ref;
    306   struct StorageImpl* ancestorStorage;           
     307  struct StorageImpl* ancestorStorage;
    307308  ULONG                 rootPropertySetIndex;
    308309  void (*v_destructor)(struct StorageImpl*);
    309  
     310
    310311  /*
    311312   * The following data members are specific to the Storage32Impl
     
    341342  BlockChainStream* rootBlockChain;
    342343  BlockChainStream* smallBlockDepotChain;
    343   BlockChainStream* smallBlockRootChain; 
     344  BlockChainStream* smallBlockRootChain;
    344345
    345346  /*
    346347   * Pointer to the big block file abstraction
    347348   */
    348   BigBlockFile* bigBlockFile; 
     349  BigBlockFile* bigBlockFile;
    349350};
    350351
    351352/*
    352353 * Method declaration for the Storage32Impl class
    353  */       
    354 
    355 HRESULT WINAPI StorageImpl_CreateStorage( 
     354 */
     355
     356HRESULT WINAPI StorageImpl_CreateStorage(
    356357            IStorage*      iface,
    357             const OLECHAR* pwcsName,  /* [string][in] */ 
    358             DWORD            grfMode,   /* [in] */ 
    359             DWORD            dwStgFmt,  /* [in] */ 
    360             DWORD            reserved2, /* [in] */ 
    361             IStorage**     ppstg);    /* [out] */ 
    362        
    363 HRESULT WINAPI StorageImpl_CopyTo( 
     358            const OLECHAR* pwcsName,  /* [string][in] */
     359            DWORD            grfMode,   /* [in] */
     360            DWORD            dwStgFmt,  /* [in] */
     361            DWORD            reserved2, /* [in] */
     362            IStorage**     ppstg);    /* [out] */
     363
     364HRESULT WINAPI StorageImpl_CopyTo(
    364365            IStorage*      iface,
    365             DWORD          ciidExclude,  /* [in] */ 
    366             const IID*     rgiidExclude, /* [size_is][unique][in] */ 
    367             SNB            snbExclude, /* [unique][in] */ 
    368             IStorage*    pstgDest);    /* [unique][in] */ 
    369        
    370 HRESULT WINAPI StorageImpl_MoveElementTo( 
     366            DWORD          ciidExclude,  /* [in] */
     367            const IID*     rgiidExclude, /* [size_is][unique][in] */
     368            SNB            snbExclude, /* [unique][in] */
     369            IStorage*    pstgDest);    /* [unique][in] */
     370
     371HRESULT WINAPI StorageImpl_MoveElementTo(
    371372            IStorage*      iface,
    372             const OLECHAR* pwcsName,    /* [string][in] */ 
    373             IStorage*      pstgDest,    /* [unique][in] */ 
    374             const OLECHAR* pwcsNewName, /* [string][in] */ 
    375             DWORD            grfFlags);   /* [in] */ 
    376        
    377 HRESULT WINAPI StorageImpl_Commit( 
     373            const OLECHAR* pwcsName,    /* [string][in] */
     374            IStorage*      pstgDest,    /* [unique][in] */
     375            const OLECHAR* pwcsNewName, /* [string][in] */
     376            DWORD            grfFlags);   /* [in] */
     377
     378HRESULT WINAPI StorageImpl_Commit(
    378379            IStorage*      iface,
    379             DWORD          grfCommitFlags); /* [in] */ 
    380        
    381 HRESULT WINAPI StorageImpl_Revert( 
     380            DWORD          grfCommitFlags); /* [in] */
     381
     382HRESULT WINAPI StorageImpl_Revert(
    382383            IStorage*      iface);
    383        
    384 HRESULT WINAPI StorageImpl_DestroyElement( 
     384
     385HRESULT WINAPI StorageImpl_DestroyElement(
    385386            IStorage*      iface,
    386             const OLECHAR* pwcsName); /* [string][in] */ 
    387        
    388 HRESULT WINAPI StorageImpl_SetElementTimes( 
     387            const OLECHAR* pwcsName); /* [string][in] */
     388
     389HRESULT WINAPI StorageImpl_SetElementTimes(
    389390            IStorage*      iface,
    390             const OLECHAR* pwcsName, /* [string][in] */ 
    391             const FILETIME*  pctime,   /* [in] */ 
    392             const FILETIME*  patime,   /* [in] */ 
    393             const FILETIME*  pmtime);  /* [in] */ 
    394 
    395 HRESULT WINAPI StorageImpl_SetStateBits( 
     391            const OLECHAR* pwcsName, /* [string][in] */
     392            const FILETIME*  pctime,   /* [in] */
     393            const FILETIME*  patime,   /* [in] */
     394            const FILETIME*  pmtime);  /* [in] */
     395
     396HRESULT WINAPI StorageImpl_SetStateBits(
    396397            IStorage*      iface,
    397             DWORD          grfStateBits, /* [in] */ 
    398             DWORD          grfMask);     /* [in] */ 
     398            DWORD          grfStateBits, /* [in] */
     399            DWORD          grfMask);     /* [in] */
    399400
    400401HRESULT WINAPI StorageImpl_Stat(IStorage* iface,
     
    443444            ULONG blockIndex);
    444445
    445 ULONG StorageImpl_GetNextBlockInChain(
    446             StorageImpl* This,
    447             ULONG blockIndex);
     446HRESULT StorageImpl_GetNextBlockInChain(
     447            StorageImpl* This,
     448            ULONG blockIndex,
     449            ULONG* nextBlockIndex);
    448450
    449451void StorageImpl_SetNextBlockInChain(
    450452            StorageImpl* This,
    451453            ULONG blockIndex,
    452       ULONG nextBlock);
     454            ULONG nextBlock);
    453455
    454456HRESULT StorageImpl_LoadFileHeader(
     
    503505   */
    504506  ULONG                      ref;
    505   struct StorageImpl* ancestorStorage;           
     507  struct StorageImpl* ancestorStorage;
    506508  ULONG                    rootPropertySetIndex;
    507509  void (*v_destructor)(struct StorageInternalImpl*);
     
    516518 */
    517519StorageInternalImpl* StorageInternalImpl_Construct(
    518             StorageImpl* ancestorStorage,       
     520            StorageImpl* ancestorStorage,
    519521            ULONG          rootTropertyIndex);
    520522
     
    522524            StorageInternalImpl* This);
    523525
    524 HRESULT WINAPI StorageInternalImpl_Commit( 
     526HRESULT WINAPI StorageInternalImpl_Commit(
    525527            IStorage*            iface,
    526             DWORD                  grfCommitFlags); /* [in] */ 
    527 
    528 HRESULT WINAPI StorageInternalImpl_Revert( 
     528            DWORD                  grfCommitFlags); /* [in] */
     529
     530HRESULT WINAPI StorageInternalImpl_Revert(
    529531            IStorage*            iface);
    530532
     
    541543  ICOM_VFIELD(IEnumSTATSTG);    /* Needs to be the first item in the struct
    542544                                         * since we want to cast this in a IEnumSTATSTG pointer */
    543  
     545
    544546  ULONG          ref;                   /* Reference count */
    545547  StorageImpl* parentStorage;         /* Reference to the parent storage */
     
    565567            REFIID            riid,
    566568            void**            ppvObject);
    567        
     569
    568570ULONG WINAPI IEnumSTATSTGImpl_AddRef(
    569             IEnumSTATSTG*     iface); 
    570        
     571            IEnumSTATSTG*     iface);
     572
    571573ULONG WINAPI IEnumSTATSTGImpl_Release(
    572574            IEnumSTATSTG*     iface);
    573        
     575
    574576HRESULT WINAPI IEnumSTATSTGImpl_Next(
    575577            IEnumSTATSTG*     iface,
     
    577579            STATSTG*          rgelt,
    578580            ULONG*            pceltFetched);
    579        
     581
    580582HRESULT WINAPI IEnumSTATSTGImpl_Skip(
    581583            IEnumSTATSTG*     iface,
    582584            ULONG             celt);
    583        
     585
    584586HRESULT WINAPI IEnumSTATSTGImpl_Reset(
    585587            IEnumSTATSTG* iface);
    586        
     588
    587589HRESULT WINAPI IEnumSTATSTGImpl_Clone(
    588590            IEnumSTATSTG*     iface,
     
    626628  ICOM_VFIELD(IStream);  /* Needs to be the first item in the struct
    627629                                    * since we want to cast this in a IStream pointer */
    628  
     630
    629631  /*
    630632   * Reference count
     
    656658   */
    657659  ULARGE_INTEGER     currentPosition;
    658  
     660
    659661  /*
    660662   * The information in the stream is represented by a chain of small blocks
     
    682684HRESULT WINAPI StgStreamImpl_QueryInterface(
    683685                IStream*      iface,
    684                 REFIID         riid,            /* [in] */         
    685                 void**         ppvObject);  /* [iid_is][out] */ 
    686        
     686                REFIID         riid,            /* [in] */
     687                void**         ppvObject);  /* [iid_is][out] */
     688
    687689ULONG WINAPI StgStreamImpl_AddRef(
    688690                IStream*      iface);
    689        
     691
    690692ULONG WINAPI StgStreamImpl_Release(
    691693                IStream*      iface);
    692        
    693 HRESULT WINAPI StgStreamImpl_Read( 
     694
     695HRESULT WINAPI StgStreamImpl_Read(
    694696                IStream*      iface,
    695697                void*          pv,        /* [length_is][size_is][out] */
    696                 ULONG          cb,        /* [in] */                     
    697                 ULONG*         pcbRead);  /* [out] */                   
    698        
     698                ULONG          cb,        /* [in] */
     699                ULONG*         pcbRead);  /* [out] */
     700
    699701HRESULT WINAPI StgStreamImpl_Write(
    700702                IStream*      iface,
    701                 const void*    pv,          /* [size_is][in] */ 
    702                 ULONG          cb,          /* [in] */         
    703                 ULONG*         pcbWritten); /* [out] */         
    704        
    705 HRESULT WINAPI StgStreamImpl_Seek( 
     703                const void*    pv,          /* [size_is][in] */
     704                ULONG          cb,          /* [in] */
     705                ULONG*         pcbWritten); /* [out] */
     706
     707HRESULT WINAPI StgStreamImpl_Seek(
    706708                IStream*      iface,
    707                 LARGE_INTEGER   dlibMove,         /* [in] */ 
    708                 DWORD           dwOrigin,         /* [in] */ 
     709                LARGE_INTEGER   dlibMove,         /* [in] */
     710                DWORD           dwOrigin,         /* [in] */
    709711                ULARGE_INTEGER* plibNewPosition); /* [out] */
    710        
    711 HRESULT WINAPI StgStreamImpl_SetSize( 
     712
     713HRESULT WINAPI StgStreamImpl_SetSize(
    712714                IStream*      iface,
    713                 ULARGE_INTEGER  libNewSize);  /* [in] */ 
    714        
    715 HRESULT WINAPI StgStreamImpl_CopyTo( 
     715                ULARGE_INTEGER  libNewSize);  /* [in] */
     716
     717HRESULT WINAPI StgStreamImpl_CopyTo(
    716718                IStream*      iface,
    717                 IStream*      pstm,         /* [unique][in] */ 
    718                 ULARGE_INTEGER  cb,           /* [in] */         
    719                 ULARGE_INTEGER* pcbRead,      /* [out] */       
    720                 ULARGE_INTEGER* pcbWritten);  /* [out] */       
    721 
    722 HRESULT WINAPI StgStreamImpl_Commit( 
     719                IStream*      pstm,         /* [unique][in] */
     720                ULARGE_INTEGER  cb,           /* [in] */
     721                ULARGE_INTEGER* pcbRead,      /* [out] */
     722                ULARGE_INTEGER* pcbWritten);  /* [out] */
     723
     724HRESULT WINAPI StgStreamImpl_Commit(
    723725                IStream*      iface,
    724                 DWORD           grfCommitFlags); /* [in] */ 
    725        
    726 HRESULT WINAPI StgStreamImpl_Revert( 
     726                DWORD           grfCommitFlags); /* [in] */
     727
     728HRESULT WINAPI StgStreamImpl_Revert(
    727729                IStream*  iface);
    728        
    729 HRESULT WINAPI StgStreamImpl_LockRegion( 
     730
     731HRESULT WINAPI StgStreamImpl_LockRegion(
    730732                IStream*     iface,
    731                 ULARGE_INTEGER libOffset,   /* [in] */ 
    732                 ULARGE_INTEGER cb,          /* [in] */ 
    733                 DWORD          dwLockType); /* [in] */ 
    734        
    735 HRESULT WINAPI StgStreamImpl_UnlockRegion( 
     733                ULARGE_INTEGER libOffset,   /* [in] */
     734                ULARGE_INTEGER cb,          /* [in] */
     735                DWORD          dwLockType); /* [in] */
     736
     737HRESULT WINAPI StgStreamImpl_UnlockRegion(
    736738                IStream*     iface,
    737                 ULARGE_INTEGER libOffset,   /* [in] */ 
    738                 ULARGE_INTEGER cb,          /* [in] */ 
    739                 DWORD          dwLockType); /* [in] */ 
    740        
    741 HRESULT WINAPI StgStreamImpl_Stat( 
     739                ULARGE_INTEGER libOffset,   /* [in] */
     740                ULARGE_INTEGER cb,          /* [in] */
     741                DWORD          dwLockType); /* [in] */
     742
     743HRESULT WINAPI StgStreamImpl_Stat(
    742744                IStream*     iface,
    743745                STATSTG*       pstatstg,     /* [out] */
    744                 DWORD          grfStatFlag); /* [in] */ 
    745        
    746 HRESULT WINAPI StgStreamImpl_Clone( 
     746                DWORD          grfStatFlag); /* [in] */
     747
     748HRESULT WINAPI StgStreamImpl_Clone(
    747749                IStream*     iface,
    748                 IStream**    ppstm);       /* [out] */ 
     750                IStream**    ppstm);       /* [out] */
    749751
    750752
    751753/********************************************************************************
    752754 * The StorageUtl_ functions are miscelaneous utility functions. Most of which are
    753  * abstractions used to read values from file buffers without having to worry 
     755 * abstractions used to read values from file buffers without having to worry
    754756 * about bit order
    755757 */
     
    785787 */
    786788BlockChainStream* BlockChainStream_Construct(
    787                 StorageImpl* parentStorage,     
     789                StorageImpl* parentStorage,
    788790                ULONG*         headOfStreamPlaceHolder,
    789791                ULONG          propertyIndex);
     
    835837 */
    836838SmallBlockChainStream* SmallBlockChainStream_Construct(
    837                StorageImpl* parentStorage,     
     839               StorageImpl* parentStorage,
    838840               ULONG          propertyIndex);
    839841
     
    844846               SmallBlockChainStream* This);
    845847
    846 ULONG SmallBlockChainStream_GetNextBlockInChain(
     848HRESULT SmallBlockChainStream_GetNextBlockInChain(
    847849               SmallBlockChainStream* This,
    848                ULONG                  blockIndex);
     850               ULONG                  blockIndex,
     851               ULONG*                 nextBlockIndex);
    849852
    850853void SmallBlockChainStream_SetNextBlockInChain(
     
    886889
    887890#endif /* __STORAGE32_H__ */
    888 
    889 
    890 
Note: See TracChangeset for help on using the changeset viewer.