Add a stub for StgCreateStorageEx(). Returns
STG_E_UNIMPLEMENTEDFUNCTION as per MSDN. Fixes an error saving files in Word XP.
This commit is contained in:
parent
07ddc60c04
commit
7a58c6ec53
|
@ -233,7 +233,7 @@
|
|||
@ stub SNB_UserUnmarshal
|
||||
@ stdcall StgCreateDocfile(wstr long long ptr)
|
||||
@ stdcall StgCreateDocfileOnILockBytes(ptr long long ptr)
|
||||
@ stub StgCreateStorageEx
|
||||
@ stdcall StgCreateStorageEx(wstr long long long ptr ptr ptr ptr)
|
||||
@ stub StgGetIFillLockBytesOnFile
|
||||
@ stub StgGetIFillLockBytesOnILockBytes
|
||||
@ stdcall StgIsStorageFile(wstr)
|
||||
|
|
|
@ -5536,6 +5536,13 @@ HRESULT WINAPI StgCreateDocfile(
|
|||
return hr;
|
||||
}
|
||||
|
||||
HRESULT WINAPI StgCreateStorageEx(const WCHAR* pwcsName, DWORD grfMode, DWORD stgfmt, DWORD grfAttrs, STGOPTIONS* pStgOptions, void* reserved, REFIID riid, void** ppObjectOpen)
|
||||
{
|
||||
TRACE("(%s, %lx, %lx, %lx, %p, %p, %p, %p)\n", debugstr_w(pwcsName),
|
||||
grfMode, stgfmt, grfAttrs, pStgOptions, reserved, riid, ppObjectOpen);
|
||||
return STG_E_UNIMPLEMENTEDFUNCTION;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* StgOpenStorage [OLE32.@]
|
||||
*/
|
||||
|
|
|
@ -495,7 +495,16 @@ HRESULT WINAPI GetRunningObjectTable(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot
|
|||
#define STGM_NOSCRATCH 0x00100000
|
||||
#define STGM_NOSNAPSHOT 0x00200000
|
||||
|
||||
typedef struct tagSTGOPTIONS
|
||||
{
|
||||
USHORT usVersion;
|
||||
USHORT reserved;
|
||||
ULONG ulSectorSize;
|
||||
const WCHAR* pwcsTemplateFile;
|
||||
} STGOPTIONS;
|
||||
|
||||
HRESULT WINAPI StgCreateDocfile(LPCOLESTR pwcsName,DWORD grfMode,DWORD reserved,IStorage **ppstgOpen);
|
||||
HRESULT WINAPI StgCreateStorageEx(const WCHAR*,DWORD,DWORD,DWORD,STGOPTIONS*,void*,REFIID,void**);
|
||||
HRESULT WINAPI StgIsStorageFile(LPCOLESTR fn);
|
||||
HRESULT WINAPI StgIsStorageILockBytes(ILockBytes *plkbyt);
|
||||
HRESULT WINAPI StgOpenStorage(const OLECHAR* pwcsName,IStorage* pstgPriority,DWORD grfMode,SNB snbExclude,DWORD reserved,IStorage**ppstgOpen);
|
||||
|
|
Loading…
Reference in New Issue