Commit 6714664d authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Eliminate forward declarations, make functions static.

parent 30dcc6b4
...@@ -1251,7 +1251,7 @@ static HRESULT WINAPI IPropertySetStorage_fnQueryInterface( ...@@ -1251,7 +1251,7 @@ static HRESULT WINAPI IPropertySetStorage_fnQueryInterface(
void** ppvObject) void** ppvObject)
{ {
_ICOM_THIS_From_IPropertySetStorage(StorageImpl, ppstg); _ICOM_THIS_From_IPropertySetStorage(StorageImpl, ppstg);
return StorageBaseImpl_QueryInterface( (IStorage*)This, riid, ppvObject ); return IStorage_QueryInterface( (IStorage*)This, riid, ppvObject );
} }
/************************************************************************ /************************************************************************
...@@ -1263,7 +1263,7 @@ static ULONG WINAPI IPropertySetStorage_fnAddRef( ...@@ -1263,7 +1263,7 @@ static ULONG WINAPI IPropertySetStorage_fnAddRef(
IPropertySetStorage *ppstg) IPropertySetStorage *ppstg)
{ {
_ICOM_THIS_From_IPropertySetStorage(StorageImpl, ppstg); _ICOM_THIS_From_IPropertySetStorage(StorageImpl, ppstg);
return StorageBaseImpl_AddRef( (IStorage*)This ); return IStorage_AddRef( (IStorage*)This );
} }
/************************************************************************ /************************************************************************
...@@ -1275,7 +1275,7 @@ static ULONG WINAPI IPropertySetStorage_fnRelease( ...@@ -1275,7 +1275,7 @@ static ULONG WINAPI IPropertySetStorage_fnRelease(
IPropertySetStorage *ppstg) IPropertySetStorage *ppstg)
{ {
_ICOM_THIS_From_IPropertySetStorage(StorageImpl, ppstg); _ICOM_THIS_From_IPropertySetStorage(StorageImpl, ppstg);
return StorageBaseImpl_Release( (IStorage*)This ); return IStorage_Release( (IStorage*)This );
} }
/************************************************************************ /************************************************************************
......
...@@ -45,89 +45,6 @@ ...@@ -45,89 +45,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(storage); WINE_DEFAULT_DEBUG_CHANNEL(storage);
/*
* Virtual function table for the StgStreamImpl class.
*/
static IStreamVtbl StgStreamImpl_Vtbl =
{
StgStreamImpl_QueryInterface,
StgStreamImpl_AddRef,
StgStreamImpl_Release,
StgStreamImpl_Read,
StgStreamImpl_Write,
StgStreamImpl_Seek,
StgStreamImpl_SetSize,
StgStreamImpl_CopyTo,
StgStreamImpl_Commit,
StgStreamImpl_Revert,
StgStreamImpl_LockRegion,
StgStreamImpl_UnlockRegion,
StgStreamImpl_Stat,
StgStreamImpl_Clone
};
/******************************************************************************
** StgStreamImpl implementation
*/
/***
* This is the constructor for the StgStreamImpl class.
*
* Params:
* parentStorage - Pointer to the storage that contains the stream to open
* ownerProperty - Index of the property that points to this stream.
*/
StgStreamImpl* StgStreamImpl_Construct(
StorageBaseImpl* parentStorage,
DWORD grfMode,
ULONG ownerProperty)
{
StgStreamImpl* newStream;
newStream = HeapAlloc(GetProcessHeap(), 0, sizeof(StgStreamImpl));
if (newStream!=0)
{
/*
* Set-up the virtual function table and reference count.
*/
newStream->lpVtbl = &StgStreamImpl_Vtbl;
newStream->ref = 0;
/*
* We want to nail-down the reference to the storage in case the
* stream out-lives the storage in the client application.
*/
newStream->parentStorage = parentStorage;
IStorage_AddRef((IStorage*)newStream->parentStorage);
newStream->grfMode = grfMode;
newStream->ownerProperty = ownerProperty;
/*
* Start the stream at the beginning.
*/
newStream->currentPosition.u.HighPart = 0;
newStream->currentPosition.u.LowPart = 0;
/*
* Initialize the rest of the data.
*/
newStream->streamSize.u.HighPart = 0;
newStream->streamSize.u.LowPart = 0;
newStream->bigBlockChain = 0;
newStream->smallBlockChain = 0;
/*
* Read the size from the property and determine if the blocks forming
* this stream are large or small.
*/
StgStreamImpl_OpenBlockChain(newStream);
}
return newStream;
}
/*** /***
* This is the destructor of the StgStreamImpl class. * This is the destructor of the StgStreamImpl class.
* *
...@@ -135,7 +52,7 @@ StgStreamImpl* StgStreamImpl_Construct( ...@@ -135,7 +52,7 @@ StgStreamImpl* StgStreamImpl_Construct(
* class. The pointer passed-in to this function will be freed and will not * class. The pointer passed-in to this function will be freed and will not
* be valid anymore. * be valid anymore.
*/ */
void StgStreamImpl_Destroy(StgStreamImpl* This) static void StgStreamImpl_Destroy(StgStreamImpl* This)
{ {
TRACE("(%p)\n", This); TRACE("(%p)\n", This);
...@@ -170,7 +87,7 @@ void StgStreamImpl_Destroy(StgStreamImpl* This) ...@@ -170,7 +87,7 @@ void StgStreamImpl_Destroy(StgStreamImpl* This)
* This implements the IUnknown method QueryInterface for this * This implements the IUnknown method QueryInterface for this
* class * class
*/ */
HRESULT WINAPI StgStreamImpl_QueryInterface( static HRESULT WINAPI StgStreamImpl_QueryInterface(
IStream* iface, IStream* iface,
REFIID riid, /* [in] */ REFIID riid, /* [in] */
void** ppvObject) /* [iid_is][out] */ void** ppvObject) /* [iid_is][out] */
...@@ -191,11 +108,8 @@ HRESULT WINAPI StgStreamImpl_QueryInterface( ...@@ -191,11 +108,8 @@ HRESULT WINAPI StgStreamImpl_QueryInterface(
/* /*
* Compare the riid with the interface IDs implemented by this object. * Compare the riid with the interface IDs implemented by this object.
*/ */
if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) if (IsEqualGUID(&IID_IUnknown, riid)||
{ IsEqualGUID(&IID_IStream, riid))
*ppvObject = (IStream*)This;
}
else if (memcmp(&IID_IStream, riid, sizeof(IID_IStream)) == 0)
{ {
*ppvObject = (IStream*)This; *ppvObject = (IStream*)This;
} }
...@@ -210,7 +124,7 @@ HRESULT WINAPI StgStreamImpl_QueryInterface( ...@@ -210,7 +124,7 @@ HRESULT WINAPI StgStreamImpl_QueryInterface(
* Query Interface always increases the reference count by one when it is * Query Interface always increases the reference count by one when it is
* successful * successful
*/ */
StgStreamImpl_AddRef(iface); IStream_AddRef(iface);
return S_OK; return S_OK;
} }
...@@ -219,7 +133,7 @@ HRESULT WINAPI StgStreamImpl_QueryInterface( ...@@ -219,7 +133,7 @@ HRESULT WINAPI StgStreamImpl_QueryInterface(
* This implements the IUnknown method AddRef for this * This implements the IUnknown method AddRef for this
* class * class
*/ */
ULONG WINAPI StgStreamImpl_AddRef( static ULONG WINAPI StgStreamImpl_AddRef(
IStream* iface) IStream* iface)
{ {
StgStreamImpl* const This=(StgStreamImpl*)iface; StgStreamImpl* const This=(StgStreamImpl*)iface;
...@@ -230,7 +144,7 @@ ULONG WINAPI StgStreamImpl_AddRef( ...@@ -230,7 +144,7 @@ ULONG WINAPI StgStreamImpl_AddRef(
* This implements the IUnknown method Release for this * This implements the IUnknown method Release for this
* class * class
*/ */
ULONG WINAPI StgStreamImpl_Release( static ULONG WINAPI StgStreamImpl_Release(
IStream* iface) IStream* iface)
{ {
StgStreamImpl* const This=(StgStreamImpl*)iface; StgStreamImpl* const This=(StgStreamImpl*)iface;
...@@ -255,7 +169,7 @@ ULONG WINAPI StgStreamImpl_Release( ...@@ -255,7 +169,7 @@ ULONG WINAPI StgStreamImpl_Release(
* that describes the stream. * that describes the stream.
* If the stream's size is null, no chain is opened. * If the stream's size is null, no chain is opened.
*/ */
void StgStreamImpl_OpenBlockChain( static void StgStreamImpl_OpenBlockChain(
StgStreamImpl* This) StgStreamImpl* This)
{ {
StgProperty curProperty; StgProperty curProperty;
...@@ -325,7 +239,7 @@ void StgStreamImpl_OpenBlockChain( ...@@ -325,7 +239,7 @@ void StgStreamImpl_OpenBlockChain(
* *
* See the documentation of ISequentialStream for more info. * See the documentation of ISequentialStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_Read( static HRESULT WINAPI StgStreamImpl_Read(
IStream* iface, IStream* iface,
void* pv, /* [length_is][size_is][out] */ void* pv, /* [length_is][size_is][out] */
ULONG cb, /* [in] */ ULONG cb, /* [in] */
...@@ -426,7 +340,7 @@ end: ...@@ -426,7 +340,7 @@ end:
* *
* See the documentation of ISequentialStream for more info. * See the documentation of ISequentialStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_Write( static HRESULT WINAPI StgStreamImpl_Write(
IStream* iface, IStream* iface,
const void* pv, /* [size_is][in] */ const void* pv, /* [size_is][in] */
ULONG cb, /* [in] */ ULONG cb, /* [in] */
...@@ -526,7 +440,7 @@ HRESULT WINAPI StgStreamImpl_Write( ...@@ -526,7 +440,7 @@ HRESULT WINAPI StgStreamImpl_Write(
* *
* See the documentation of IStream for more info. * See the documentation of IStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_Seek( static HRESULT WINAPI StgStreamImpl_Seek(
IStream* iface, IStream* iface,
LARGE_INTEGER dlibMove, /* [in] */ LARGE_INTEGER dlibMove, /* [in] */
DWORD dwOrigin, /* [in] */ DWORD dwOrigin, /* [in] */
...@@ -588,7 +502,7 @@ HRESULT WINAPI StgStreamImpl_Seek( ...@@ -588,7 +502,7 @@ HRESULT WINAPI StgStreamImpl_Seek(
* *
* See the documentation of IStream for more info. * See the documentation of IStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_SetSize( static HRESULT WINAPI StgStreamImpl_SetSize(
IStream* iface, IStream* iface,
ULARGE_INTEGER libNewSize) /* [in] */ ULARGE_INTEGER libNewSize) /* [in] */
{ {
...@@ -695,7 +609,7 @@ HRESULT WINAPI StgStreamImpl_SetSize( ...@@ -695,7 +609,7 @@ HRESULT WINAPI StgStreamImpl_SetSize(
* *
* See the documentation of IStream for more info. * See the documentation of IStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_CopyTo( static HRESULT WINAPI StgStreamImpl_CopyTo(
IStream* iface, IStream* iface,
IStream* pstm, /* [unique][in] */ IStream* pstm, /* [unique][in] */
ULARGE_INTEGER cb, /* [in] */ ULARGE_INTEGER cb, /* [in] */
...@@ -780,7 +694,7 @@ HRESULT WINAPI StgStreamImpl_CopyTo( ...@@ -780,7 +694,7 @@ HRESULT WINAPI StgStreamImpl_CopyTo(
* *
* See the documentation of IStream for more info. * See the documentation of IStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_Commit( static HRESULT WINAPI StgStreamImpl_Commit(
IStream* iface, IStream* iface,
DWORD grfCommitFlags) /* [in] */ DWORD grfCommitFlags) /* [in] */
{ {
...@@ -795,13 +709,13 @@ HRESULT WINAPI StgStreamImpl_Commit( ...@@ -795,13 +709,13 @@ HRESULT WINAPI StgStreamImpl_Commit(
* *
* See the documentation of IStream for more info. * See the documentation of IStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_Revert( static HRESULT WINAPI StgStreamImpl_Revert(
IStream* iface) IStream* iface)
{ {
return S_OK; return S_OK;
} }
HRESULT WINAPI StgStreamImpl_LockRegion( static HRESULT WINAPI StgStreamImpl_LockRegion(
IStream* iface, IStream* iface,
ULARGE_INTEGER libOffset, /* [in] */ ULARGE_INTEGER libOffset, /* [in] */
ULARGE_INTEGER cb, /* [in] */ ULARGE_INTEGER cb, /* [in] */
...@@ -811,7 +725,7 @@ HRESULT WINAPI StgStreamImpl_LockRegion( ...@@ -811,7 +725,7 @@ HRESULT WINAPI StgStreamImpl_LockRegion(
return E_NOTIMPL; return E_NOTIMPL;
} }
HRESULT WINAPI StgStreamImpl_UnlockRegion( static HRESULT WINAPI StgStreamImpl_UnlockRegion(
IStream* iface, IStream* iface,
ULARGE_INTEGER libOffset, /* [in] */ ULARGE_INTEGER libOffset, /* [in] */
ULARGE_INTEGER cb, /* [in] */ ULARGE_INTEGER cb, /* [in] */
...@@ -829,7 +743,7 @@ HRESULT WINAPI StgStreamImpl_UnlockRegion( ...@@ -829,7 +743,7 @@ HRESULT WINAPI StgStreamImpl_UnlockRegion(
* *
* See the documentation of IStream for more info. * See the documentation of IStream for more info.
*/ */
HRESULT WINAPI StgStreamImpl_Stat( static HRESULT WINAPI StgStreamImpl_Stat(
IStream* iface, IStream* iface,
STATSTG* pstatstg, /* [out] */ STATSTG* pstatstg, /* [out] */
DWORD grfStatFlag) /* [in] */ DWORD grfStatFlag) /* [in] */
...@@ -872,7 +786,7 @@ HRESULT WINAPI StgStreamImpl_Stat( ...@@ -872,7 +786,7 @@ HRESULT WINAPI StgStreamImpl_Stat(
* should be basically as simple as creating a new stream with the same * should be basically as simple as creating a new stream with the same
* parent etc and positioning its seek cursor. * parent etc and positioning its seek cursor.
*/ */
HRESULT WINAPI StgStreamImpl_Clone( static HRESULT WINAPI StgStreamImpl_Clone(
IStream* iface, IStream* iface,
IStream** ppstm) /* [out] */ IStream** ppstm) /* [out] */
{ {
...@@ -901,3 +815,86 @@ HRESULT WINAPI StgStreamImpl_Clone( ...@@ -901,3 +815,86 @@ HRESULT WINAPI StgStreamImpl_Clone(
return S_OK; return S_OK;
} }
/*
* Virtual function table for the StgStreamImpl class.
*/
static IStreamVtbl StgStreamImpl_Vtbl =
{
StgStreamImpl_QueryInterface,
StgStreamImpl_AddRef,
StgStreamImpl_Release,
StgStreamImpl_Read,
StgStreamImpl_Write,
StgStreamImpl_Seek,
StgStreamImpl_SetSize,
StgStreamImpl_CopyTo,
StgStreamImpl_Commit,
StgStreamImpl_Revert,
StgStreamImpl_LockRegion,
StgStreamImpl_UnlockRegion,
StgStreamImpl_Stat,
StgStreamImpl_Clone
};
/******************************************************************************
** StgStreamImpl implementation
*/
/***
* This is the constructor for the StgStreamImpl class.
*
* Params:
* parentStorage - Pointer to the storage that contains the stream to open
* ownerProperty - Index of the property that points to this stream.
*/
StgStreamImpl* StgStreamImpl_Construct(
StorageBaseImpl* parentStorage,
DWORD grfMode,
ULONG ownerProperty)
{
StgStreamImpl* newStream;
newStream = HeapAlloc(GetProcessHeap(), 0, sizeof(StgStreamImpl));
if (newStream!=0)
{
/*
* Set-up the virtual function table and reference count.
*/
newStream->lpVtbl = &StgStreamImpl_Vtbl;
newStream->ref = 0;
/*
* We want to nail-down the reference to the storage in case the
* stream out-lives the storage in the client application.
*/
newStream->parentStorage = parentStorage;
IStorage_AddRef((IStorage*)newStream->parentStorage);
newStream->grfMode = grfMode;
newStream->ownerProperty = ownerProperty;
/*
* Start the stream at the beginning.
*/
newStream->currentPosition.u.HighPart = 0;
newStream->currentPosition.u.LowPart = 0;
/*
* Initialize the rest of the data.
*/
newStream->streamSize.u.HighPart = 0;
newStream->streamSize.u.LowPart = 0;
newStream->bigBlockChain = 0;
newStream->smallBlockChain = 0;
/*
* Read the size from the property and determine if the blocks forming
* this stream are large or small.
*/
StgStreamImpl_OpenBlockChain(newStream);
}
return newStream;
}
...@@ -240,66 +240,6 @@ struct StorageBaseImpl ...@@ -240,66 +240,6 @@ struct StorageBaseImpl
}; };
/*
* Prototypes for the methods of the Storage32BaseImpl class.
*/
HRESULT WINAPI StorageBaseImpl_QueryInterface(
IStorage* iface,
REFIID riid,
void** ppvObject);
ULONG WINAPI StorageBaseImpl_AddRef(
IStorage* iface);
ULONG WINAPI StorageBaseImpl_Release(
IStorage* iface);
HRESULT WINAPI StorageBaseImpl_OpenStream(
IStorage* iface,
const OLECHAR* pwcsName, /* [string][in] */
void* reserved1, /* [unique][in] */
DWORD grfMode, /* [in] */
DWORD reserved2, /* [in] */
IStream** ppstm); /* [out] */
HRESULT WINAPI StorageBaseImpl_OpenStorage(
IStorage* iface,
const OLECHAR* pwcsName, /* [string][unique][in] */
IStorage* pstgPriority, /* [unique][in] */
DWORD grfMode, /* [in] */
SNB snbExclude, /* [unique][in] */
DWORD reserved, /* [in] */
IStorage** ppstg); /* [out] */
HRESULT WINAPI StorageBaseImpl_EnumElements(
IStorage* iface,
DWORD reserved1, /* [in] */
void* reserved2, /* [size_is][unique][in] */
DWORD reserved3, /* [in] */
IEnumSTATSTG** ppenum); /* [out] */
HRESULT WINAPI StorageBaseImpl_Stat(
IStorage* iface,
STATSTG* pstatstg, /* [out] */
DWORD grfStatFlag); /* [in] */
HRESULT WINAPI StorageBaseImpl_RenameElement(
IStorage* iface,
const OLECHAR* pwcsOldName, /* [string][in] */
const OLECHAR* pwcsNewName); /* [string][in] */
HRESULT WINAPI StorageBaseImpl_CreateStream(
IStorage* iface,
const OLECHAR* pwcsName, /* [string][in] */
DWORD grfMode, /* [in] */
DWORD reserved1, /* [in] */
DWORD reserved2, /* [in] */
IStream** ppstm); /* [out] */
HRESULT WINAPI StorageBaseImpl_SetClass(
IStorage* iface,
REFCLSID clsid); /* [in] */
/**************************************************************************** /****************************************************************************
* Storage32Impl definitions. * Storage32Impl definitions.
* *
...@@ -351,59 +291,6 @@ struct StorageImpl ...@@ -351,59 +291,6 @@ struct StorageImpl
BigBlockFile* bigBlockFile; BigBlockFile* bigBlockFile;
}; };
/*
* Method declaration for the Storage32Impl class
*/
HRESULT WINAPI StorageImpl_CreateStorage(
IStorage* iface,
const OLECHAR* pwcsName, /* [string][in] */
DWORD grfMode, /* [in] */
DWORD dwStgFmt, /* [in] */
DWORD reserved2, /* [in] */
IStorage** ppstg); /* [out] */
HRESULT WINAPI StorageImpl_CopyTo(
IStorage* iface,
DWORD ciidExclude, /* [in] */
const IID* rgiidExclude, /* [size_is][unique][in] */
SNB snbExclude, /* [unique][in] */
IStorage* pstgDest); /* [unique][in] */
HRESULT WINAPI StorageImpl_MoveElementTo(
IStorage* iface,
const OLECHAR* pwcsName, /* [string][in] */
IStorage* pstgDest, /* [unique][in] */
const OLECHAR* pwcsNewName, /* [string][in] */
DWORD grfFlags); /* [in] */
HRESULT WINAPI StorageImpl_Commit(
IStorage* iface,
DWORD grfCommitFlags); /* [in] */
HRESULT WINAPI StorageImpl_Revert(
IStorage* iface);
HRESULT WINAPI StorageImpl_DestroyElement(
IStorage* iface,
const OLECHAR* pwcsName); /* [string][in] */
HRESULT WINAPI StorageImpl_SetElementTimes(
IStorage* iface,
const OLECHAR* pwcsName, /* [string][in] */
const FILETIME* pctime, /* [in] */
const FILETIME* patime, /* [in] */
const FILETIME* pmtime); /* [in] */
HRESULT WINAPI StorageImpl_SetStateBits(
IStorage* iface,
DWORD grfStateBits, /* [in] */
DWORD grfMask); /* [in] */
HRESULT WINAPI StorageImpl_Stat(IStorage* iface,
STATSTG* pstatstg, /* [out] */
DWORD grfStatFlag); /* [in] */
void StorageImpl_Destroy( void StorageImpl_Destroy(
StorageBaseImpl* This); StorageBaseImpl* This);
...@@ -551,37 +438,6 @@ struct IEnumSTATSTGImpl ...@@ -551,37 +438,6 @@ struct IEnumSTATSTGImpl
#define ENUMSTATSGT_SIZE_INCREMENT 10 #define ENUMSTATSGT_SIZE_INCREMENT 10
}; };
/*
* Method definitions for the IEnumSTATSTGImpl class.
*/
HRESULT WINAPI IEnumSTATSTGImpl_QueryInterface(
IEnumSTATSTG* iface,
REFIID riid,
void** ppvObject);
ULONG WINAPI IEnumSTATSTGImpl_AddRef(
IEnumSTATSTG* iface);
ULONG WINAPI IEnumSTATSTGImpl_Release(
IEnumSTATSTG* iface);
HRESULT WINAPI IEnumSTATSTGImpl_Next(
IEnumSTATSTG* iface,
ULONG celt,
STATSTG* rgelt,
ULONG* pceltFetched);
HRESULT WINAPI IEnumSTATSTGImpl_Skip(
IEnumSTATSTG* iface,
ULONG celt);
HRESULT WINAPI IEnumSTATSTGImpl_Reset(
IEnumSTATSTG* iface);
HRESULT WINAPI IEnumSTATSTGImpl_Clone(
IEnumSTATSTG* iface,
IEnumSTATSTG** ppenum);
IEnumSTATSTGImpl* IEnumSTATSTGImpl_Construct( IEnumSTATSTGImpl* IEnumSTATSTGImpl_Construct(
StorageImpl* This, StorageImpl* This,
ULONG firstPropertyNode); ULONG firstPropertyNode);
...@@ -667,80 +523,6 @@ StgStreamImpl* StgStreamImpl_Construct( ...@@ -667,80 +523,6 @@ StgStreamImpl* StgStreamImpl_Construct(
DWORD grfMode, DWORD grfMode,
ULONG ownerProperty); ULONG ownerProperty);
void StgStreamImpl_Destroy(
StgStreamImpl* This);
void StgStreamImpl_OpenBlockChain(
StgStreamImpl* This);
HRESULT WINAPI StgStreamImpl_QueryInterface(
IStream* iface,
REFIID riid, /* [in] */
void** ppvObject); /* [iid_is][out] */
ULONG WINAPI StgStreamImpl_AddRef(
IStream* iface);
ULONG WINAPI StgStreamImpl_Release(
IStream* iface);
HRESULT WINAPI StgStreamImpl_Read(
IStream* iface,
void* pv, /* [length_is][size_is][out] */
ULONG cb, /* [in] */
ULONG* pcbRead); /* [out] */
HRESULT WINAPI StgStreamImpl_Write(
IStream* iface,
const void* pv, /* [size_is][in] */
ULONG cb, /* [in] */
ULONG* pcbWritten); /* [out] */
HRESULT WINAPI StgStreamImpl_Seek(
IStream* iface,
LARGE_INTEGER dlibMove, /* [in] */
DWORD dwOrigin, /* [in] */
ULARGE_INTEGER* plibNewPosition); /* [out] */
HRESULT WINAPI StgStreamImpl_SetSize(
IStream* iface,
ULARGE_INTEGER libNewSize); /* [in] */
HRESULT WINAPI StgStreamImpl_CopyTo(
IStream* iface,
IStream* pstm, /* [unique][in] */
ULARGE_INTEGER cb, /* [in] */
ULARGE_INTEGER* pcbRead, /* [out] */
ULARGE_INTEGER* pcbWritten); /* [out] */
HRESULT WINAPI StgStreamImpl_Commit(
IStream* iface,
DWORD grfCommitFlags); /* [in] */
HRESULT WINAPI StgStreamImpl_Revert(
IStream* iface);
HRESULT WINAPI StgStreamImpl_LockRegion(
IStream* iface,
ULARGE_INTEGER libOffset, /* [in] */
ULARGE_INTEGER cb, /* [in] */
DWORD dwLockType); /* [in] */
HRESULT WINAPI StgStreamImpl_UnlockRegion(
IStream* iface,
ULARGE_INTEGER libOffset, /* [in] */
ULARGE_INTEGER cb, /* [in] */
DWORD dwLockType); /* [in] */
HRESULT WINAPI StgStreamImpl_Stat(
IStream* iface,
STATSTG* pstatstg, /* [out] */
DWORD grfStatFlag); /* [in] */
HRESULT WINAPI StgStreamImpl_Clone(
IStream* iface,
IStream** ppstm); /* [out] */
/******************************************************************************** /********************************************************************************
* The StorageUtl_ functions are miscelaneous utility functions. Most of which are * The StorageUtl_ functions are miscelaneous utility functions. Most of which are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment