|
| DEFINE_EXPECT (CreateStub) |
|
| DEFINE_EXPECT (PreInitialize) |
|
| DEFINE_EXPECT (PostInitialize) |
|
| DEFINE_EXPECT (PreUninitialize) |
|
| DEFINE_EXPECT (PostUninitialize) |
|
static | HRESULT (WINAPI *pCoInitializeEx)(LPVOID lpReserved |
|
static | LONG (WINAPI *pRegDeleteKeyExA)(HKEY |
|
static | BOOL (WINAPI *pActivateActCtx)(HANDLE |
|
static ULONG_PTR *static | HANDLE (WINAPI *pCreateActCtxW)(PCACTCTXW) |
|
static | void (WINAPI *pReleaseActCtx)(HANDLE) |
|
| DEFINE_GUID (CLSID_testclsid, 0xacd014c7, 0x9535, 0x4fac, 0x8b, 0x53, 0xa4, 0x8c, 0xa7, 0xf4, 0xd7, 0x26) |
|
| DEFINE_GUID (IID_IWineTest, 0x5201163f, 0x8164, 0x4fd0, 0xa1, 0xa2, 0x5d, 0x5a, 0x36, 0x54, 0xd3, 0xbd) |
|
| DEFINE_GUID (CLSID_WineOOPTest, 0x5201163f, 0x8164, 0x4fd0, 0xa1, 0xa2, 0x5d, 0x5a, 0x36, 0x54, 0xd3, 0xbd) |
|
static void | LockModule (void) |
|
static void | UnlockModule (void) |
|
static HRESULT WINAPI | Test_IClassFactory_QueryInterface (LPCLASSFACTORY iface, REFIID riid, LPVOID *ppvObj) |
|
static ULONG WINAPI | Test_IClassFactory_AddRef (LPCLASSFACTORY iface) |
|
static ULONG WINAPI | Test_IClassFactory_Release (LPCLASSFACTORY iface) |
|
static HRESULT WINAPI | Test_IClassFactory_CreateInstance (LPCLASSFACTORY iface, IUnknown *pUnkOuter, REFIID riid, LPVOID *ppvObj) |
|
static HRESULT WINAPI | Test_IClassFactory_LockServer (LPCLASSFACTORY iface, BOOL fLock) |
|
static BOOL | create_manifest_file (const char *filename, const char *manifest) |
|
static HANDLE | activate_context (const char *manifest, ULONG_PTR *cookie) |
|
| DEFINE_GUID (CLSID_Testclass, 0x12345678, 0x1234, 0x1234, 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0) |
|
static void | test_ProgIDFromCLSID (void) |
|
static void | test_CLSIDFromProgID (void) |
|
static void | test_CLSIDFromString (void) |
|
static void | test_IIDFromString (void) |
|
static void | test_StringFromGUID2 (void) |
|
static void | _test_apt_type (APTTYPE expected_type, APTTYPEQUALIFIER expected_qualifier, int line) |
|
static void | test_CoCreateInstance (void) |
|
static void | test_CoGetClassObject (void) |
|
static void | test_CoCreateInstanceEx (void) |
|
static ATOM | register_dummy_class (void) |
|
static void | test_ole_menu (void) |
|
static HRESULT WINAPI | MessageFilter_QueryInterface (IMessageFilter *iface, REFIID riid, void **ppvObj) |
|
static ULONG WINAPI | MessageFilter_AddRef (IMessageFilter *iface) |
|
static ULONG WINAPI | MessageFilter_Release (IMessageFilter *iface) |
|
static DWORD WINAPI | MessageFilter_HandleInComingCall (IMessageFilter *iface, DWORD dwCallType, HTASK threadIDCaller, DWORD dwTickCount, LPINTERFACEINFO lpInterfaceInfo) |
|
static DWORD WINAPI | MessageFilter_RetryRejectedCall (IMessageFilter *iface, HTASK threadIDCallee, DWORD dwTickCount, DWORD dwRejectType) |
|
static DWORD WINAPI | MessageFilter_MessagePending (IMessageFilter *iface, HTASK threadIDCallee, DWORD dwTickCount, DWORD dwPendingType) |
|
static void | test_CoRegisterMessageFilter (void) |
|
static HRESULT WINAPI | EnumOLEVERB_QueryInterface (IEnumOLEVERB *iface, REFIID riid, void **ppv) |
|
static ULONG WINAPI | EnumOLEVERB_AddRef (IEnumOLEVERB *iface) |
|
static ULONG WINAPI | EnumOLEVERB_Release (IEnumOLEVERB *iface) |
|
static HRESULT WINAPI | EnumOLEVERB_Next (IEnumOLEVERB *iface, ULONG celt, OLEVERB *rgelt, ULONG *fetched) |
|
static HRESULT WINAPI | EnumOLEVERB_Skip (IEnumOLEVERB *iface, ULONG celt) |
|
static HRESULT WINAPI | EnumOLEVERB_Reset (IEnumOLEVERB *iface) |
|
static HRESULT WINAPI | EnumOLEVERB_Clone (IEnumOLEVERB *iface, IEnumOLEVERB **ppenum) |
|
static HRESULT WINAPI | Test_IUnknown_QueryInterface (IUnknown *iface, REFIID riid, LPVOID *ppvObj) |
|
static ULONG WINAPI | Test_IUnknown_AddRef (IUnknown *iface) |
|
static ULONG WINAPI | Test_IUnknown_Release (IUnknown *iface) |
|
static HRESULT WINAPI | PSFactoryBuffer_QueryInterface (IPSFactoryBuffer *This, REFIID riid, void **ppvObject) |
|
static ULONG WINAPI | PSFactoryBuffer_AddRef (IPSFactoryBuffer *This) |
|
static ULONG WINAPI | PSFactoryBuffer_Release (IPSFactoryBuffer *This) |
|
static HRESULT WINAPI | PSFactoryBuffer_CreateProxy (IPSFactoryBuffer *This, IUnknown *pUnkOuter, REFIID riid, IRpcProxyBuffer **ppProxy, void **ppv) |
|
static HRESULT WINAPI | PSFactoryBuffer_CreateStub (IPSFactoryBuffer *This, REFIID riid, IUnknown *pUnkServer, IRpcStubBuffer **ppStub) |
|
static DWORD CALLBACK | register_ps_clsid_thread (void *context) |
|
static void | test_CoRegisterPSClsid (void) |
|
static void | test_CoGetPSClsid (void) |
|
static void | test_CoUnmarshalInterface (void) |
|
static void | test_CoGetInterfaceAndReleaseStream (void) |
|
static void | test_CoMarshalInterface (void) |
|
static void | test_CoMarshalInterThreadInterfaceInStream (void) |
|
static void | test_CoRegisterClassObject (void) |
|
static HRESULT | get_class_object (CLSCTX clsctx) |
|
static DWORD CALLBACK | get_class_object_thread (LPVOID pv) |
|
static DWORD CALLBACK | get_class_object_proxy_thread (LPVOID pv) |
|
static DWORD CALLBACK | register_class_object_thread (LPVOID pv) |
|
static DWORD CALLBACK | revoke_class_object_thread (LPVOID pv) |
|
static void | test_registered_object_thread_affinity (void) |
|
static DWORD CALLBACK | free_libraries_thread (LPVOID p) |
|
static BOOL | is_module_loaded (const char *module) |
|
static void | test_CoFreeUnusedLibraries (void) |
|
static void | test_CoGetObjectContext (void) |
|
static Test_CallContext * | impl_from_IUnknown (IUnknown *iface) |
|
static HRESULT WINAPI | Test_CallContext_QueryInterface (IUnknown *iface, REFIID riid, LPVOID *ppvObj) |
|
static ULONG WINAPI | Test_CallContext_AddRef (IUnknown *iface) |
|
static ULONG WINAPI | Test_CallContext_Release (IUnknown *iface) |
|
static void | test_CoGetCallContext (void) |
|
static void | test_CoGetContextToken (void) |
|
static void | test_TreatAsClass (void) |
|
static void | test_CoInitializeEx (void) |
|
static void | test_OleInitialize_InitCounting (void) |
|
static void | test_OleRegGetMiscStatus (void) |
|
static void | test_OleRegGetUserType (void) |
|
static void | test_CoCreateGuid (void) |
|
static void CALLBACK | apc_test_proc (ULONG_PTR param) |
|
static DWORD CALLBACK | release_semaphore_thread (LPVOID arg) |
|
static DWORD CALLBACK | send_message_thread (LPVOID arg) |
|
static DWORD CALLBACK | send_and_post_user_message_thread (void *arg) |
|
static DWORD CALLBACK | post_message_thread (LPVOID arg) |
|
static void | cowait_msgs_reset (void) |
|
static void | _cowait_msgs_expect_empty (unsigned line) |
|
static void | _cowait_msgs_expect_notified (unsigned line, UINT expected_msg) |
|
static void | _cowait_msgs_expect_queued (unsigned line, HWND hwnd, UINT expected_msg) |
|
static void | flush_messages (void) |
|
static LRESULT CALLBACK | cowait_window_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
|
static DWORD CALLBACK | cowait_unmarshal_thread (void *arg) |
|
static DWORD CALLBACK | test_CoWaitForMultipleHandles_thread (LPVOID arg) |
|
static void | test_CoWaitForMultipleHandles (void) |
|
static void | test_CoGetMalloc (void) |
|
static void | test_CoGetApartmentType (void) |
|
static HRESULT WINAPI | testspy_QI (IMallocSpy *iface, REFIID riid, void **obj) |
|
static ULONG WINAPI | testspy_AddRef (IMallocSpy *iface) |
|
static ULONG WINAPI | testspy_Release (IMallocSpy *iface) |
|
static SIZE_T WINAPI | testspy_PreAlloc (IMallocSpy *iface, SIZE_T cb) |
|
static void *WINAPI | testspy_PostAlloc (IMallocSpy *iface, void *ptr) |
|
static void *WINAPI | testspy_PreFree (IMallocSpy *iface, void *ptr, BOOL spyed) |
|
static void WINAPI | testspy_PostFree (IMallocSpy *iface, BOOL spyed) |
|
static SIZE_T WINAPI | testspy_PreRealloc (IMallocSpy *iface, void *ptr, SIZE_T cb, void **newptr, BOOL spyed) |
|
static void *WINAPI | testspy_PostRealloc (IMallocSpy *iface, void *ptr, BOOL spyed) |
|
static void *WINAPI | testspy_PreGetSize (IMallocSpy *iface, void *ptr, BOOL spyed) |
|
static SIZE_T WINAPI | testspy_PostGetSize (IMallocSpy *iface, SIZE_T actual, BOOL spyed) |
|
static void *WINAPI | testspy_PreDidAlloc (IMallocSpy *iface, void *ptr, BOOL spyed) |
|
static int WINAPI | testspy_PostDidAlloc (IMallocSpy *iface, void *ptr, BOOL spyed, int actual) |
|
static void WINAPI | testspy_PreHeapMinimize (IMallocSpy *iface) |
|
static void WINAPI | testspy_PostHeapMinimize (IMallocSpy *iface) |
|
static void | test_IMallocSpy (void) |
|
static void | test_CoGetCurrentLogicalThreadId (void) |
|
static HRESULT WINAPI | testinitialize_QI (IInitializeSpy *iface, REFIID riid, void **obj) |
|
static ULONG WINAPI | testinitialize_AddRef (IInitializeSpy *iface) |
|
static ULONG WINAPI | testinitialize_Release (IInitializeSpy *iface) |
|
static HRESULT WINAPI | testinitialize_PreInitialize (IInitializeSpy *iface, DWORD coinit, DWORD aptrefs) |
|
static HRESULT WINAPI | testinitialize_PostInitialize (IInitializeSpy *iface, HRESULT hr, DWORD coinit, DWORD aptrefs) |
|
static HRESULT WINAPI | testinitialize_PreUninitialize (IInitializeSpy *iface, DWORD aptrefs) |
|
static HRESULT WINAPI | testinitialize_PostUninitialize (IInitializeSpy *iface, DWORD aptrefs) |
|
static DWORD WINAPI | test_init_spies_proc (void *arg) |
|
static void | test_IInitializeSpy (BOOL mt) |
|
static HRESULT WINAPI | testinstance_QI (IPersistFile *iface, REFIID riid, void **obj) |
|
static ULONG WINAPI | testinstance_AddRef (IPersistFile *iface) |
|
static ULONG WINAPI | testinstance_Release (IPersistFile *iface) |
|
static HRESULT WINAPI | testinstance_GetClassID (IPersistFile *iface, CLSID *clsid) |
|
static HRESULT WINAPI | testinstance_IsDirty (IPersistFile *iface) |
|
static HRESULT WINAPI | testinstance_Load (IPersistFile *iface, LPCOLESTR filename, DWORD mode) |
|
static HRESULT WINAPI | testinstance_Save (IPersistFile *iface, LPCOLESTR filename, BOOL remember) |
|
static HRESULT WINAPI | testinstance_SaveCompleted (IPersistFile *iface, LPCOLESTR filename) |
|
static HRESULT WINAPI | testinstance_GetCurFile (IPersistFile *iface, LPOLESTR *filename) |
|
static HRESULT WINAPI | getinstance_cf_QI (IClassFactory *iface, REFIID riid, void **obj) |
|
static ULONG WINAPI | getinstance_cf_AddRef (IClassFactory *iface) |
|
static ULONG WINAPI | getinstance_cf_Release (IClassFactory *iface) |
|
static HRESULT WINAPI | getinstance_cf_CreateInstance (IClassFactory *iface, IUnknown *outer, REFIID riid, void **obj) |
|
static HRESULT WINAPI | getinstance_cf_LockServer (IClassFactory *iface, BOOL lock) |
|
static void | test_CoGetInstanceFromFile (void) |
|
static void | test_GlobalOptions (void) |
|
static void | init_funcs (void) |
|
static DWORD CALLBACK | implicit_mta_proc (void *param) |
|
static void | test_implicit_mta (void) |
|
| START_TEST (compobj) |
|
|
static DWORD | dwCoInit |
|
static LPVOID * | ppv |
|
static IUnknown ** | ppOldObject |
|
static LPCLSID | pClsidNew |
|
static APTTYPEQUALIFIER * | qualifier |
|
static | LPCSTR |
|
static | REGSAM |
|
static | DWORD |
|
static HKEY | override |
|
static | ULONG_PTR |
|
static | LPBOOL |
|
static const CLSID | CLSID_non_existent = { 0x12345678, 0x1234, 0x1234, { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 } } |
|
static const CLSID | CLSID_StdFont = { 0x0be35203, 0x8f91, 0x11ce, { 0x9d, 0xe3, 0x00, 0xaa, 0x00, 0x4b, 0xb8, 0x51 } } |
|
static const GUID | IID_Testiface = { 0x22222222, 0x1234, 0x1234, { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 } } |
|
static const GUID | IID_Testiface2 = { 0x32222222, 0x1234, 0x1234, { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 } } |
|
static const GUID | IID_Testiface3 = { 0x42222222, 0x1234, 0x1234, { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 } } |
|
static const GUID | IID_Testiface4 = { 0x52222222, 0x1234, 0x1234, { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 } } |
|
static const GUID | IID_Testiface5 = { 0x62222222, 0x1234, 0x1234, { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 } } |
|
static const GUID | IID_Testiface6 = { 0x72222222, 0x1234, 0x1234, { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 } } |
|
static const GUID | IID_TestPS = { 0x66666666, 0x8888, 0x7777, { 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55 } } |
|
static const WCHAR | stdfont [] = {'S','t','d','F','o','n','t',0} |
|
static const WCHAR | wszNonExistent [] = {'N','o','n','E','x','i','s','t','e','n','t',0} |
|
static const WCHAR | wszCLSID_StdFont [] |
|
static const WCHAR | progidW [] = {'P','r','o','g','I','d','.','P','r','o','g','I','d',0} |
|
static const WCHAR | cf_brokenW [] |
|
static LONG | cLocks |
|
static IID | create_instance_iid |
|
static const IClassFactoryVtbl | TestClassFactory_Vtbl |
|
static IClassFactory | Test_ClassFactory = { &TestClassFactory_Vtbl } |
|
static WCHAR | manifest_path [MAX_PATH] |
|
static const char | actctx_manifest [] |
|
static const IMessageFilterVtbl | MessageFilter_Vtbl |
|
static IMessageFilter | MessageFilter = { &MessageFilter_Vtbl } |
|
static IUnknown | Test_Unknown = { &TestUnknown_Vtbl } |
|
static const IEnumOLEVERBVtbl | EnumOLEVERBVtbl |
|
static IEnumOLEVERB | EnumOLEVERB = { &EnumOLEVERBVtbl } |
|
static const IUnknownVtbl | TestUnknown_Vtbl |
|
static IPSFactoryBuffer * | ps_factory_buffer |
|
static IPSFactoryBufferVtbl | PSFactoryBufferVtbl |
|
static IPSFactoryBuffer | PSFactoryBuffer = { &PSFactoryBufferVtbl } |
|
static const CLSID | CLSID_WineTestPSFactoryBuffer |
|
static const IUnknownVtbl | TestCallContext_Vtbl |
|
static const char | cls_name [] = "cowait_test_class" |
|
static UINT | cowait_msgs [100] |
|
static UINT | cowait_msgs_first |
|
static UINT | cowait_msgs_last |
|
static const IMallocSpyVtbl | testspyvtbl |
|
static IMallocSpy | testspy = { &testspyvtbl } |
|
static DWORD | expected_coinit_flags |
|
static ULARGE_INTEGER | init_cookies [3] |
|
static BOOL | revoke_spies_on_uninit |
|
static const IInitializeSpyVtbl | testinitializevtbl |
|
static IInitializeSpy | testinitialize = { &testinitializevtbl } |
|
static HRESULT | g_persistfile_qi_ret |
|
static HRESULT | g_persistfile_load_ret |
|
static const IPersistFileVtbl | testpersistfilevtbl |
|
static IPersistFile | testpersistfile = { &testpersistfilevtbl } |
|
static const IClassFactoryVtbl | getinstance_cf_vtbl |
|
static IClassFactory | getinstance_cf = { &getinstance_cf_vtbl } |
|