|
| DEFINE_EXPECT (Storage_Stat) |
|
| DEFINE_EXPECT (Storage_OpenStream_CompObj) |
|
| DEFINE_EXPECT (Storage_OpenStream_OlePres) |
|
| DEFINE_EXPECT (Storage_SetClass) |
|
| DEFINE_EXPECT (Storage_CreateStream_CompObj) |
|
| DEFINE_EXPECT (Storage_CreateStream_OlePres) |
|
| DEFINE_EXPECT (Storage_OpenStream_Ole) |
|
| DEFINE_EXPECT (Storage_DestroyElement) |
|
static void | check_expected_method_fmt (const char *method_name, const FORMATETC *fmt) |
|
static void | create_dib (STGMEDIUM *med) |
|
static void | create_bitmap (STGMEDIUM *med) |
|
static void | create_emf (STGMEDIUM *med) |
|
static void | create_mfpict (STGMEDIUM *med) |
|
static void | create_text (STGMEDIUM *med) |
|
static HRESULT WINAPI | OleObject_QueryInterface (IOleObject *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | OleObject_AddRef (IOleObject *iface) |
|
static ULONG WINAPI | OleObject_Release (IOleObject *iface) |
|
static HRESULT WINAPI | OleObject_SetClientSite (IOleObject *iface, IOleClientSite *pClientSite) |
|
static HRESULT WINAPI | OleObject_GetClientSite (IOleObject *iface, IOleClientSite **ppClientSite) |
|
static HRESULT WINAPI | OleObject_SetHostNames (IOleObject *iface, LPCOLESTR szContainerApp, LPCOLESTR szContainerObj) |
|
static HRESULT WINAPI | OleObject_Close (IOleObject *iface, DWORD dwSaveOption) |
|
static HRESULT WINAPI | OleObject_SetMoniker (IOleObject *iface, DWORD dwWhichMoniker, IMoniker *pmk) |
|
static HRESULT WINAPI | OleObject_GetMoniker (IOleObject *iface, DWORD dwAssign, DWORD dwWhichMoniker, IMoniker **ppmk) |
|
static HRESULT WINAPI | OleObject_InitFromData (IOleObject *iface, IDataObject *pDataObject, BOOL fCreation, DWORD dwReserved) |
|
static HRESULT WINAPI | OleObject_GetClipboardData (IOleObject *iface, DWORD dwReserved, IDataObject **ppDataObject) |
|
static HRESULT WINAPI | OleObject_DoVerb (IOleObject *iface, LONG iVerb, LPMSG lpmsg, IOleClientSite *pActiveSite, LONG lindex, HWND hwndParent, LPCRECT lprcPosRect) |
|
static HRESULT WINAPI | OleObject_EnumVerbs (IOleObject *iface, IEnumOLEVERB **ppEnumOleVerb) |
|
static HRESULT WINAPI | OleObject_Update (IOleObject *iface) |
|
static HRESULT WINAPI | OleObject_IsUpToDate (IOleObject *iface) |
|
static HRESULT WINAPI | OleObject_GetUserClassID (IOleObject *iface, CLSID *pClsid) |
|
static HRESULT WINAPI | OleObject_GetUserType (IOleObject *iface, DWORD dwFormOfType, LPOLESTR *pszUserType) |
|
static HRESULT WINAPI | OleObject_SetExtent (IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel) |
|
static HRESULT WINAPI | OleObject_GetExtent (IOleObject *iface, DWORD dwDrawAspect, SIZEL *psizel) |
|
static HRESULT WINAPI | OleObject_Advise (IOleObject *iface, IAdviseSink *pAdvSink, DWORD *pdwConnection) |
|
static HRESULT WINAPI | OleObject_Unadvise (IOleObject *iface, DWORD dwConnection) |
|
static HRESULT WINAPI | OleObject_EnumAdvise (IOleObject *iface, IEnumSTATDATA **ppenumAdvise) |
|
static HRESULT WINAPI | OleObject_GetMiscStatus (IOleObject *iface, DWORD aspect, DWORD *pdwStatus) |
|
static HRESULT WINAPI | OleObject_SetColorScheme (IOleObject *iface, LOGPALETTE *pLogpal) |
|
static HRESULT WINAPI | OleObjectPersistStg_QueryInterface (IPersistStorage *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | OleObjectPersistStg_AddRef (IPersistStorage *iface) |
|
static ULONG WINAPI | OleObjectPersistStg_Release (IPersistStorage *iface) |
|
static HRESULT WINAPI | OleObjectPersistStg_GetClassId (IPersistStorage *iface, CLSID *clsid) |
|
static HRESULT WINAPI | OleObjectPersistStg_IsDirty (IPersistStorage *iface) |
|
static HRESULT WINAPI | OleObjectPersistStg_InitNew (IPersistStorage *iface, IStorage *pStg) |
|
static HRESULT WINAPI | OleObjectPersistStg_Load (IPersistStorage *iface, IStorage *pStg) |
|
static HRESULT WINAPI | OleObjectPersistStg_Save (IPersistStorage *iface, IStorage *pStgSave, BOOL fSameAsLoad) |
|
static HRESULT WINAPI | OleObjectPersistStg_SaveCompleted (IPersistStorage *iface, IStorage *pStgNew) |
|
static HRESULT WINAPI | OleObjectPersistStg_HandsOffStorage (IPersistStorage *iface) |
|
static HRESULT WINAPI | OleObjectCache_QueryInterface (IOleCache *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | OleObjectCache_AddRef (IOleCache *iface) |
|
static ULONG WINAPI | OleObjectCache_Release (IOleCache *iface) |
|
static HRESULT WINAPI | OleObjectCache_Cache (IOleCache *iface, FORMATETC *pformatetc, DWORD advf, DWORD *pdwConnection) |
|
static HRESULT WINAPI | OleObjectCache_Uncache (IOleCache *iface, DWORD dwConnection) |
|
static HRESULT WINAPI | OleObjectCache_EnumCache (IOleCache *iface, IEnumSTATDATA **ppenumSTATDATA) |
|
static HRESULT WINAPI | OleObjectCache_InitCache (IOleCache *iface, IDataObject *pDataObject) |
|
static HRESULT WINAPI | OleObjectCache_SetData (IOleCache *iface, FORMATETC *pformatetc, STGMEDIUM *pmedium, BOOL fRelease) |
|
static HRESULT WINAPI | OleObjectCF_QueryInterface (IClassFactory *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | OleObjectCF_AddRef (IClassFactory *iface) |
|
static ULONG WINAPI | OleObjectCF_Release (IClassFactory *iface) |
|
static HRESULT WINAPI | OleObjectCF_CreateInstance (IClassFactory *iface, IUnknown *punkOuter, REFIID riid, void **ppv) |
|
static HRESULT WINAPI | OleObjectCF_LockServer (IClassFactory *iface, BOOL lock) |
|
static HRESULT WINAPI | OleObjectRunnable_QueryInterface (IRunnableObject *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | OleObjectRunnable_AddRef (IRunnableObject *iface) |
|
static ULONG WINAPI | OleObjectRunnable_Release (IRunnableObject *iface) |
|
static HRESULT WINAPI | OleObjectRunnable_GetRunningClass (IRunnableObject *iface, LPCLSID lpClsid) |
|
static HRESULT WINAPI | OleObjectRunnable_Run (IRunnableObject *iface, LPBINDCTX pbc) |
|
static BOOL WINAPI | OleObjectRunnable_IsRunning (IRunnableObject *iface) |
|
static HRESULT WINAPI | OleObjectRunnable_LockRunning (IRunnableObject *iface, BOOL fLock, BOOL fLastUnlockCloses) |
|
static HRESULT WINAPI | OleObjectRunnable_SetContainedObject (IRunnableObject *iface, BOOL fContained) |
|
static HRESULT WINAPI | viewobject_QueryInterface (IViewObject *iface, REFIID riid, void **obj) |
|
static ULONG WINAPI | viewobject_AddRef (IViewObject *iface) |
|
static ULONG WINAPI | viewobject_Release (IViewObject *iface) |
|
static HRESULT WINAPI | viewobject_Draw (IViewObject *iface, DWORD aspect, LONG index, void *paspect, DVTARGETDEVICE *ptd, HDC hdcTargetDev, HDC hdcDraw, LPCRECTL bounds, LPCRECTL wbounds, BOOL(STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), ULONG_PTR dwContinue) |
|
static HRESULT WINAPI | viewobject_GetColorSet (IViewObject *iface, DWORD draw_aspect, LONG index, void *aspect, DVTARGETDEVICE *ptd, HDC hicTargetDev, LOGPALETTE **colorset) |
|
static HRESULT WINAPI | viewobject_Freeze (IViewObject *iface, DWORD draw_aspect, LONG index, void *aspect, DWORD *freeze) |
|
static HRESULT WINAPI | viewobject_Unfreeze (IViewObject *iface, DWORD freeze) |
|
static HRESULT WINAPI | viewobject_SetAdvise (IViewObject *iface, DWORD aspects, DWORD advf, IAdviseSink *sink) |
|
static HRESULT WINAPI | viewobject_GetAdvise (IViewObject *iface, DWORD *aspects, DWORD *advf, IAdviseSink **sink) |
|
static void | test_OleCreate (IStorage *pStorage) |
|
static void | test_OleLoad (IStorage *pStorage) |
|
static BOOL STDMETHODCALLTYPE | draw_continue (ULONG_PTR param) |
|
static BOOL STDMETHODCALLTYPE | draw_continue_false (ULONG_PTR param) |
|
static HRESULT WINAPI | AdviseSink_QueryInterface (IAdviseSink *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | AdviseSink_AddRef (IAdviseSink *iface) |
|
static ULONG WINAPI | AdviseSink_Release (IAdviseSink *iface) |
|
static void WINAPI | AdviseSink_OnDataChange (IAdviseSink *iface, FORMATETC *pFormatetc, STGMEDIUM *pStgmed) |
|
static void WINAPI | AdviseSink_OnViewChange (IAdviseSink *iface, DWORD dwAspect, LONG lindex) |
|
static void WINAPI | AdviseSink_OnRename (IAdviseSink *iface, IMoniker *pmk) |
|
static void WINAPI | AdviseSink_OnSave (IAdviseSink *iface) |
|
static void WINAPI | AdviseSink_OnClose (IAdviseSink *iface) |
|
static HRESULT WINAPI | DataObject_QueryInterface (IDataObject *iface, REFIID riid, void **ppvObject) |
|
static ULONG WINAPI | DataObject_AddRef (IDataObject *iface) |
|
static ULONG WINAPI | DataObject_Release (IDataObject *iface) |
|
static BOOL | fmtetc_equal (const FORMATETC *a, const FORMATETC *b) |
|
static HRESULT WINAPI | DataObject_GetData (IDataObject *iface, FORMATETC *fmt_in, STGMEDIUM *med) |
|
static HRESULT WINAPI | DataObject_GetDataHere (IDataObject *iface, LPFORMATETC pformatetc, STGMEDIUM *pmedium) |
|
static HRESULT WINAPI | DataObject_QueryGetData (IDataObject *iface, FORMATETC *fmt_in) |
|
static HRESULT WINAPI | DataObject_GetCanonicalFormatEtc (IDataObject *iface, LPFORMATETC pformatectIn, LPFORMATETC pformatetcOut) |
|
static HRESULT WINAPI | DataObject_SetData (IDataObject *iface, LPFORMATETC pformatetc, STGMEDIUM *pmedium, BOOL fRelease) |
|
static HRESULT WINAPI | DataObject_EnumFormatEtc (IDataObject *iface, DWORD dwDirection, IEnumFORMATETC **ppenumFormatEtc) |
|
static HRESULT WINAPI | DataObject_DAdvise (IDataObject *iface, FORMATETC *pformatetc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection) |
|
static HRESULT WINAPI | DataObject_DUnadvise (IDataObject *iface, DWORD dwConnection) |
|
static HRESULT WINAPI | DataObject_EnumDAdvise (IDataObject *iface, IEnumSTATDATA **ppenumAdvise) |
|
static HRESULT WINAPI | Unknown_QueryInterface (IUnknown *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | Unknown_AddRef (IUnknown *iface) |
|
static ULONG WINAPI | Unknown_Release (IUnknown *iface) |
|
static void | check_enum_cache (IOleCache2 *cache, const STATDATA *expect, int num) |
|
static void | test_data_cache (void) |
|
static IStorage * | create_storage (int num) |
|
static void | test_data_cache_dib_contents_stream (int num) |
|
static void | check_bitmap_size (HBITMAP h, int cx, int cy) |
|
static void | check_dib_size (HGLOBAL h, int cx, int cy) |
|
static void | test_data_cache_cache (void) |
|
static void | test_data_cache_init (void) |
|
static void | test_data_cache_initnew (void) |
|
static void | test_data_cache_updatecache (void) |
|
static void | test_default_handler (void) |
|
static void | test_runnable (void) |
|
static HRESULT WINAPI | OleRun_QueryInterface (IRunnableObject *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | OleRun_AddRef (IRunnableObject *iface) |
|
static ULONG WINAPI | OleRun_Release (IRunnableObject *iface) |
|
static HRESULT WINAPI | OleRun_GetRunningClass (IRunnableObject *iface, CLSID *clsid) |
|
static HRESULT WINAPI | OleRun_Run (IRunnableObject *iface, LPBINDCTX ctx) |
|
static BOOL WINAPI | OleRun_IsRunning (IRunnableObject *iface) |
|
static HRESULT WINAPI | OleRun_LockRunning (IRunnableObject *iface, BOOL lock, BOOL last_unlock_closes) |
|
static HRESULT WINAPI | OleRun_SetContainedObject (IRunnableObject *iface, BOOL contained) |
|
static void | test_OleRun (void) |
|
static void | test_OleLockRunning (void) |
|
static void | test_OleDraw (void) |
|
static HRESULT WINAPI | Storage_QueryInterface (IStorage *iface, REFIID riid, void **ppvObject) |
|
static ULONG WINAPI | Storage_AddRef (IStorage *iface) |
|
static ULONG WINAPI | Storage_Release (IStorage *iface) |
|
static HRESULT WINAPI | Storage_CreateStream (IStorage *iface, LPCOLESTR pwcsName, DWORD grfMode, DWORD reserved1, DWORD reserved2, IStream **ppstm) |
|
static HRESULT WINAPI | Storage_OpenStream (IStorage *iface, LPCOLESTR pwcsName, void *reserved1, DWORD grfMode, DWORD reserved2, IStream **ppstm) |
|
static HRESULT WINAPI | Storage_CreateStorage (IStorage *iface, LPCOLESTR pwcsName, DWORD grfMode, DWORD dwStgFmt, DWORD reserved2, IStorage **ppstg) |
|
static HRESULT WINAPI | Storage_OpenStorage (IStorage *iface, LPCOLESTR pwcsName, IStorage *pstgPriority, DWORD grfMode, SNB snbExclude, DWORD reserved, IStorage **ppstg) |
|
static HRESULT WINAPI | Storage_CopyTo (IStorage *iface, DWORD ciidExclude, const IID *rgiidExclude, SNB snbExclude, IStorage *pstgDest) |
|
static HRESULT WINAPI | Storage_MoveElementTo (IStorage *iface, LPCOLESTR pwcsName, IStorage *pstgDest, LPCOLESTR pwcsNewName, DWORD grfFlags) |
|
static HRESULT WINAPI | Storage_Commit (IStorage *iface, DWORD grfCommitFlags) |
|
static HRESULT WINAPI | Storage_Revert (IStorage *iface) |
|
static HRESULT WINAPI | Storage_EnumElements (IStorage *iface, DWORD reserved1, void *reserved2, DWORD reserved3, IEnumSTATSTG **ppenum) |
|
static HRESULT WINAPI | Storage_DestroyElement (IStorage *iface, LPCOLESTR pwcsName) |
|
static HRESULT WINAPI | Storage_RenameElement (IStorage *iface, LPCOLESTR pwcsOldName, LPCOLESTR pwcsNewName) |
|
static HRESULT WINAPI | Storage_SetElementTimes (IStorage *iface, LPCOLESTR pwcsName, const FILETIME *pctime, const FILETIME *patime, const FILETIME *pmtime) |
|
static HRESULT WINAPI | Storage_SetClass (IStorage *iface, REFCLSID clsid) |
|
static HRESULT WINAPI | Storage_SetStateBits (IStorage *iface, DWORD grfStateBits, DWORD grfMask) |
|
static HRESULT WINAPI | Storage_Stat (IStorage *iface, STATSTG *pstatstg, DWORD grfStatFlag) |
|
static void | test_OleDoAutoConvert (void) |
|
static void | test_data_cache_save (void) |
|
static int | read_clipformat (IStream *stream) |
|
static void | check_storage_contents (IStorage *stg, const struct storage_def *stg_def, int *enumerated_streams, int *matched_streams) |
|
static HRESULT | stgmedium_cmp (const STGMEDIUM *med1, STGMEDIUM *med2) |
|
static IStorage * | create_storage_from_def (const struct storage_def *stg_def) |
|
static void | get_stgdef (struct storage_def *stg_def, CLIPFORMAT cf, STGMEDIUM *stg_med, int stm_idx) |
|
static void | get_stgmedium (CLIPFORMAT cfFormat, STGMEDIUM *stgmedium) |
|
static void | test_data_cache_save_data (void) |
|
static void | test_data_cache_contents (void) |
|
static void | test_OleCreateStaticFromData (void) |
|
| START_TEST (ole2) |
|
|
static const CLSID * | Storage_SetClass_CLSID |
|
static int | Storage_DestroyElement_limit |
|
static IPersistStorage | OleObjectPersistStg = { &OleObjectPersistStgVtbl } |
|
static IOleCache * | cache |
|
static IRunnableObject * | runnable |
|
static const CLSID | CLSID_WineTestOld |
|
static const CLSID | CLSID_WineTest |
|
static const IID | IID_WineTest |
|
static const struct expected_method * | expected_method_list |
|
static FORMATETC * | g_expected_fetc = NULL |
|
static BOOL | g_showRunnable = TRUE |
|
static BOOL | g_isRunning = TRUE |
|
static HRESULT | g_GetMiscStatusFailsWith = S_OK |
|
static HRESULT | g_QIFailsWith |
|
static UINT | cf_test_1 |
|
static UINT | cf_test_2 |
|
static UINT | cf_test_3 |
|
static FORMATETC * | g_dataobject_fmts |
|
static const BYTE | dib [] |
|
static const IOleObjectVtbl | OleObjectVtbl |
|
static IOleObject | OleObject = { &OleObjectVtbl } |
|
static const IPersistStorageVtbl | OleObjectPersistStgVtbl |
|
static const IOleCacheVtbl | OleObjectCacheVtbl |
|
static IOleCache | OleObjectCache = { &OleObjectCacheVtbl } |
|
static const IClassFactoryVtbl | OleObjectCFVtbl |
|
static IClassFactory | OleObjectCF = { &OleObjectCFVtbl } |
|
static const IRunnableObjectVtbl | OleObjectRunnableVtbl |
|
static IRunnableObject | OleObjectRunnable = { &OleObjectRunnableVtbl } |
|
static const CLSID | CLSID_Equation3 = {0x0002CE02, 0x0000, 0x0000, {0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46} } |
|
static const struct IViewObjectVtbl | viewobjectvtbl |
|
static IViewObject | viewobject = { &viewobjectvtbl } |
|
static const IAdviseSinkVtbl | AdviseSinkVtbl |
|
static IAdviseSink | AdviseSink = { &AdviseSinkVtbl } |
|
static IDataObjectVtbl | DataObjectVtbl |
|
static IDataObject | DataObject = { &DataObjectVtbl } |
|
static const IUnknownVtbl | UnknownVtbl |
|
static IUnknown | unknown = { &UnknownVtbl } |
|
static const WCHAR | CONTENTS [] = {'C','O','N','T','E','N','T','S',0} |
|
static BYTE | file_dib [] |
|
static const IRunnableObjectVtbl | oleruntestvtbl |
|
static IRunnableObject | testrunnable = { &oleruntestvtbl } |
|
static const WCHAR | olepres0W [] = {2,'O','l','e','P','r','e','s','0','0','0',0} |
|
static const WCHAR | comp_objW [] = {1,'C','o','m','p','O','b','j',0} |
|
static IStream * | comp_obj_stream |
|
static IStream * | ole_stream |
|
static IStream * | olepres_stream |
|
static IStream * | contents_stream |
|
static IStorageVtbl | StorageVtbl |
|
static IStorage | Storage = { &StorageVtbl } |
|
static const unsigned char | bmpimage [] |
|
static const unsigned char | mf_blank_bits [] |
|
static const struct storage_def | stg_def_0 |
|
static const struct storage_def | stg_def_0_saved |
|
static const struct storage_def | stg_def_1 |
|
static const struct storage_def | stg_def_1_saved |
|
static const struct storage_def | stg_def_2 |
|
static const struct storage_def | stg_def_2_saved |
|
static const struct storage_def | stg_def_3 |
|
static const struct storage_def | stg_def_3_saved |
|
static const struct storage_def | stg_def_4 |
|
static const struct storage_def | stg_def_4_saved |
|
static const struct storage_def | stg_def_5 |
|
static const struct storage_def | stg_def_5_saved |
|
static const struct storage_def | stg_def_6 |
|
static const struct storage_def | stg_def_6_saved |
|
static const struct storage_def | stg_def_7 |
|
static const struct storage_def | stg_def_7_saved |
|
static const struct storage_def | stg_def_8 |
|
static const struct storage_def | stg_def_8_saved |
|
static const struct storage_def | stg_def_9 |
|
static const struct storage_def | stg_def_9_saved |
|
static const BYTE | dib_inf [] |
|
static const BYTE | mf_rec [] |
|