ReactOS 0.4.15-dev-7127-g2dd0c6c
|
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "winuser.h"
#include "wine/debug.h"
#include "storage32.h"
#include "ole2.h"
#include "winreg.h"
#include "wine/wingdi16.h"
#include "compobj_private.h"
Go to the source code of this file.
Classes | |
struct | StorageInternalImpl |
struct | TransactedDirEntry |
struct | TransactedSnapshotImpl |
struct | TransactedSharedImpl |
struct | BlockChainRun |
struct | BlockChainBlock |
struct | BlockChainStream |
struct | SmallBlockChainStream |
struct | IEnumSTATSTGImpl |
struct | OLECONVERT_OLESTREAM_DATA |
struct | OLECONVERT_ISTORAGE_COMPOBJ |
struct | OLECONVERT_ISTORAGE_OLEPRES |
Macros | |
#define | COBJMACROS |
#define | NONAMELESSUNION |
#define | OLESTREAM_ID 0x501 |
#define | OLESTREAM_MAX_STR_LEN 255 |
Typedefs | |
typedef struct StorageInternalImpl | StorageInternalImpl |
typedef struct TransactedDirEntry | TransactedDirEntry |
typedef struct TransactedSnapshotImpl | TransactedSnapshotImpl |
typedef struct TransactedSharedImpl | TransactedSharedImpl |
typedef struct BlockChainBlock | BlockChainBlock |
Enumerations | |
enum | stream_1ole_flags { OleStream_LinkedObject = 0x00000001 , OleStream_Convert = 0x00000004 } |
Variables | |
static const BYTE | STORAGE_magic [8] ={0xd0,0xcf,0x11,0xe0,0xa1,0xb1,0x1a,0xe1} |
static const BYTE | STORAGE_oldmagic [8] ={0xd0,0xcf,0x11,0xe0,0x0e,0x11,0xfc,0x0d} |
const IPropertySetStorageVtbl | IPropertySetStorage_Vtbl |
static const IStorageVtbl | StorageInternalImpl_Vtbl |
static const IStorageVtbl | TransactedSnapshotImpl_Vtbl |
static const IDirectWriterLockVtbl | DirectWriterLockVtbl |
static const IEnumSTATSTGVtbl | IEnumSTATSTGImpl_Vtbl |
static const StorageBaseImplVtbl | StorageImpl_BaseVtbl |
static const IStorageVtbl | StorageImpl_Vtbl |
static const StorageBaseImplVtbl | StorageInternalImpl_BaseVtbl |
static const StorageBaseImplVtbl | TransactedSnapshotImpl_BaseVtbl |
static const IStorageVtbl | TransactedSharedImpl_Vtbl |
static const StorageBaseImplVtbl | TransactedSharedImpl_BaseVtbl |
#define COBJMACROS |
Definition at line 39 of file storage32.c.
#define NONAMELESSUNION |
Definition at line 40 of file storage32.c.
#define OLESTREAM_ID 0x501 |
Definition at line 9577 of file storage32.c.
#define OLESTREAM_MAX_STR_LEN 255 |
Definition at line 9578 of file storage32.c.
typedef struct BlockChainBlock BlockChainBlock |
Enumerator | |
---|---|
OleStream_LinkedObject | |
OleStream_Convert |
Definition at line 10609 of file storage32.c.
|
static |
Definition at line 7261 of file storage32.c.
Referenced by Storage32Impl_SmallBlocksToBigBlocks(), StorageImpl_GetCachedBlockChainStream(), and StorageImpl_Refresh().
|
static |
Definition at line 7311 of file storage32.c.
Referenced by Storage32Impl_BigBlocksToSmallBlocks(), Storage32Impl_SmallBlocksToBigBlocks(), StorageImpl_DeleteCachedBlockChainStream(), StorageImpl_Destroy(), StorageImpl_GetCachedBlockChainStream(), StorageImpl_GetFreeBlockChainCacheEntry(), and StorageImpl_Refresh().
|
static |
Definition at line 7419 of file storage32.c.
Referenced by BlockChainStream_SetSize(), and SmallBlockChainStream_GetNextFreeBlock().
|
static |
Definition at line 7294 of file storage32.c.
Referenced by BlockChainStream_Destroy(), and StorageImpl_Flush().
|
static |
Definition at line 7214 of file storage32.c.
Referenced by BlockChainStream_ReadAt(), and BlockChainStream_WriteAt().
|
inlinestatic |
Definition at line 218 of file storage32.c.
Referenced by BlockChainStream_GetSize(), SmallBlockChainStream_GetNextFreeBlock(), StorageImpl_CreateDirEntry(), and StorageImpl_SaveFileHeader().
|
static |
Definition at line 7085 of file storage32.c.
Referenced by BlockChainStream_Enlarge(), and BlockChainStream_UpdateIndexCache().
|
static |
Definition at line 7185 of file storage32.c.
Referenced by BlockChainStream_GetBlockAtOffset(), BlockChainStream_ReadAt(), and BlockChainStream_Shrink().
|
static |
Definition at line 7535 of file storage32.c.
Referenced by BlockChainStream_ReadAt(), BlockChainStream_SetSize(), SmallBlockChainStream_GetNextFreeBlock(), and Storage32Impl_BigBlocksToSmallBlocks().
|
static |
Definition at line 7605 of file storage32.c.
Referenced by SmallBlockChainStream_GetNextBlockInChain(), SmallBlockChainStream_GetNextFreeBlock(), SmallBlockChainStream_ReadAt(), Storage32Impl_BigBlocksToSmallBlocks(), StorageImpl_ReadRawDirEntry(), and StorageImpl_StreamReadAt().
|
static |
Definition at line 7577 of file storage32.c.
Referenced by SmallBlockChainStream_GetNextFreeBlock(), Storage32Impl_BigBlocksToSmallBlocks(), Storage32Impl_SmallBlocksToBigBlocks(), StorageImpl_CreateDirEntry(), and StorageImpl_StreamSetSize().
|
static |
Definition at line 7326 of file storage32.c.
Referenced by BlockChainStream_SetSize().
|
static |
Definition at line 7108 of file storage32.c.
Referenced by BlockChainStream_Construct(), and BlockChainStream_Enlarge().
|
static |
Definition at line 7702 of file storage32.c.
Referenced by SmallBlockChainStream_GetNextFreeBlock(), SmallBlockChainStream_SetNextBlockInChain(), SmallBlockChainStream_WriteAt(), Storage32Impl_SmallBlocksToBigBlocks(), StorageImpl_StreamWriteAt(), and StorageImpl_WriteRawDirEntry().
|
static |
Definition at line 8485 of file storage32.c.
Referenced by StgCreateDocfile(), and StgCreateStorageEx().
|
static |
Definition at line 2426 of file storage32.c.
Referenced by StorageBaseImpl_DestroyElement().
|
static |
Definition at line 2513 of file storage32.c.
Referenced by StorageBaseImpl_DestroyElement().
|
static |
Definition at line 451 of file storage32.c.
|
static |
Definition at line 477 of file storage32.c.
|
static |
Definition at line 445 of file storage32.c.
|
static |
Definition at line 457 of file storage32.c.
|
static |
Definition at line 470 of file storage32.c.
|
static |
Definition at line 463 of file storage32.c.
Definition at line 510 of file storage32.c.
Referenced by findElement(), findTreeParent(), IEnumSTATSTGImpl_GetNextRef(), and insertIntoTree().
|
static |
Definition at line 533 of file storage32.c.
Referenced by StorageBaseImpl_CreateStorage(), StorageBaseImpl_CreateStream(), StorageBaseImpl_DestroyElement(), StorageBaseImpl_OpenStorage(), StorageBaseImpl_OpenStream(), and StorageBaseImpl_RenameElement().
|
static |
Definition at line 574 of file storage32.c.
Referenced by removeFromTree().
Definition at line 397 of file storage32.c.
Referenced by create_storagefile(), and StgOpenStorage().
Definition at line 10617 of file storage32.c.
Referenced by test_convert().
Definition at line 418 of file storage32.c.
Referenced by create_storagefile().
Definition at line 371 of file storage32.c.
Referenced by create_storagefile(), and StgOpenStorage().
|
static |
Definition at line 930 of file storage32.c.
|
static |
Definition at line 1136 of file storage32.c.
|
static |
Definition at line 1187 of file storage32.c.
Referenced by IEnumSTATSTGImpl_Clone(), and StorageBaseImpl_EnumElements().
|
static |
Definition at line 897 of file storage32.c.
Referenced by IEnumSTATSTGImpl_Release().
|
static |
Definition at line 954 of file storage32.c.
Referenced by IEnumSTATSTGImpl_Next(), and IEnumSTATSTGImpl_Skip().
|
static |
Definition at line 1002 of file storage32.c.
|
static |
Definition at line 903 of file storage32.c.
|
static |
Definition at line 937 of file storage32.c.
|
static |
Definition at line 1116 of file storage32.c.
|
static |
Definition at line 1081 of file storage32.c.
|
inlinestatic |
Definition at line 440 of file storage32.c.
Referenced by directwriterlock_AddRef(), directwriterlock_HaveWriteAccess(), directwriterlock_QueryInterface(), directwriterlock_Release(), directwriterlock_ReleaseWriteAccess(), and directwriterlock_WaitForWriteAccess().
|
inlinestatic |
Definition at line 892 of file storage32.c.
Referenced by IEnumSTATSTGImpl_AddRef(), IEnumSTATSTGImpl_Clone(), IEnumSTATSTGImpl_Next(), IEnumSTATSTGImpl_QueryInterface(), IEnumSTATSTGImpl_Release(), IEnumSTATSTGImpl_Reset(), and IEnumSTATSTGImpl_Skip().
|
inlinestatic |
Definition at line 1219 of file storage32.c.
Referenced by StorageBaseImpl_AddRef(), StorageBaseImpl_Commit(), StorageBaseImpl_CopyTo(), StorageBaseImpl_CreateStorage(), StorageBaseImpl_CreateStream(), StorageBaseImpl_DestroyElement(), StorageBaseImpl_EnumElements(), StorageBaseImpl_OpenStorage(), StorageBaseImpl_OpenStream(), StorageBaseImpl_QueryInterface(), StorageBaseImpl_Release(), StorageBaseImpl_RenameElement(), StorageBaseImpl_SetClass(), StorageBaseImpl_SetStateBits(), StorageBaseImpl_Stat(), StorageInternalImpl_Commit(), TransactedSharedImpl_Commit(), TransactedSharedImpl_Construct(), TransactedSharedImpl_Revert(), TransactedSnapshotImpl_Commit(), TransactedSnapshotImpl_Construct(), and TransactedSnapshotImpl_Revert().
|
static |
Definition at line 650 of file storage32.c.
Referenced by StorageBaseImpl_CreateStorage(), StorageBaseImpl_CreateStream(), and StorageBaseImpl_RenameElement().
Definition at line 10028 of file storage32.c.
Referenced by OleConvertOLESTREAMToIStorage(), and render_embed_source_hack().
|
static |
Definition at line 10214 of file storage32.c.
Referenced by OleConvertOLESTREAMToIStorage().
|
static |
Definition at line 10130 of file storage32.c.
Referenced by OleConvertOLESTREAMToIStorage().
|
static |
Definition at line 10324 of file storage32.c.
Referenced by OleConvertIStorageToOLESTREAM().
|
static |
Definition at line 10253 of file storage32.c.
Referenced by OleConvertIStorageToOLESTREAM().
|
static |
Definition at line 9919 of file storage32.c.
Referenced by OleConvertOLESTREAMToIStorage().
|
static |
Definition at line 10377 of file storage32.c.
Referenced by OleConvertIStorageToOLESTREAM().
|
static |
Definition at line 9640 of file storage32.c.
Referenced by OleConvertOLESTREAMToIStorage().
|
static |
Definition at line 9808 of file storage32.c.
Referenced by OleConvertIStorageToOLESTREAM().
Definition at line 9969 of file storage32.c.
Referenced by OLECONVERT_GetOle20PresData().
HRESULT WINAPI OleConvertIStorageToOLESTREAM | ( | LPSTORAGE | pstg, |
LPOLESTREAM | pOleStream | ||
) |
Definition at line 10551 of file storage32.c.
HRESULT WINAPI OleConvertOLESTREAMToIStorage | ( | LPOLESTREAM | pOleStream, |
LPSTORAGE | pstg, | ||
const DVTARGETDEVICE * | ptd | ||
) |
Definition at line 10460 of file storage32.c.
Definition at line 9129 of file storage32.c.
Referenced by CompositeMonikerImpl_Load(), HlinkClone(), IPersistStream_fnLoad(), and CTrayBandSite::OnLoad().
HRESULT WINAPI OleSaveToStream | ( | IPersistStream * | pPStm, |
IStream * | pStm | ||
) |
Definition at line 9164 of file storage32.c.
Referenced by CompositeMonikerImpl_Save(), HlinkClone(), and IPersistStream_fnSave().
Definition at line 9103 of file storage32.c.
Referenced by DataCache_InitNew(), DataCache_Load(), GetClassFile(), render_embed_source_hack(), and test_writeclassstg().
Definition at line 9548 of file storage32.c.
Referenced by OleLoadFromStream(), ReadFmtUserTypeStg(), and test_ReadClassStm().
Definition at line 9399 of file storage32.c.
Referenced by OleDoAutoConvert().
|
static |
Definition at line 771 of file storage32.c.
Referenced by StorageBaseImpl_DestroyElement(), and StorageBaseImpl_RenameElement().
Definition at line 10648 of file storage32.c.
Referenced by OleDoAutoConvert(), test_convert(), and test_OleDoAutoConvert().
Definition at line 626 of file storage32.c.
Referenced by removeFromTree().
|
static |
Definition at line 7785 of file storage32.c.
Referenced by Storage32Impl_BigBlocksToSmallBlocks(), StorageImpl_StreamReadAt(), StorageImpl_StreamSetSize(), and StorageImpl_StreamWriteAt().
|
static |
Definition at line 7801 of file storage32.c.
Referenced by Storage32Impl_BigBlocksToSmallBlocks(), Storage32Impl_SmallBlocksToBigBlocks(), StorageImpl_StreamReadAt(), StorageImpl_StreamSetSize(), and StorageImpl_StreamWriteAt().
|
static |
Definition at line 8315 of file storage32.c.
Referenced by SmallBlockChainStream_SetSize().
|
static |
Definition at line 7917 of file storage32.c.
Referenced by SmallBlockChainStream_Shrink().
|
static |
Definition at line 8433 of file storage32.c.
Referenced by SmallBlockChainStream_GetSize().
|
static |
Definition at line 7812 of file storage32.c.
Referenced by SmallBlockChainStream_Enlarge(), SmallBlockChainStream_GetCount(), SmallBlockChainStream_ReadAt(), SmallBlockChainStream_Shrink(), and SmallBlockChainStream_WriteAt().
|
static |
Definition at line 7844 of file storage32.c.
Referenced by SmallBlockChainStream_Enlarge(), SmallBlockChainStream_GetCount(), SmallBlockChainStream_ReadAt(), SmallBlockChainStream_Shrink(), and SmallBlockChainStream_WriteAt().
|
static |
Definition at line 7931 of file storage32.c.
Referenced by SmallBlockChainStream_Enlarge().
|
static |
Definition at line 8457 of file storage32.c.
Referenced by SmallBlockChainStream_ReadAt(), SmallBlockChainStream_SetSize(), and Storage32Impl_SmallBlocksToBigBlocks().
|
static |
Definition at line 8038 of file storage32.c.