ReactOS 0.4.16-dev-1019-g2c2cdfd
|
#include <math.h>
#include <windows.h>
#include <ocidl.h>
#include <stdio.h>
#include "wine/test.h"
#include "tmarshal.h"
Go to the source code of this file.
Classes | |
struct | host_object_data |
struct | disp_obj |
struct | coclass_obj |
struct | Widget |
struct | KindaEnum |
Macros | |
#define | COBJMACROS |
#define | CONST_VTABLE |
#define | ok_ole_success(hr, func) ok(hr == S_OK, #func " failed with error 0x%08x\n", hr) |
#define | release_iface(a) release_iface_(__LINE__, a) |
#define | ULL_CONST(dw1, dw2) ((((ULONGLONG)dw1) << 32) | (ULONGLONG)dw2) |
#define | RELEASEMARSHALDATA WM_USER |
Typedefs | |
typedef struct Widget | Widget |
typedef struct KindaEnum | KindaEnum |
Variables | |
static | LPVARIANT |
static const WCHAR | test_bstr1 [] = {'f','o','o',0,'b','a','r'} |
static const WCHAR | test_bstr2 [] = {'t','e','s','t',0} |
static const WCHAR | test_bstr3 [] = {'q','u','x',0} |
static const WCHAR | test_bstr4 [] = {'a','b','c',0} |
static const MYSTRUCT | test_mystruct1 = {0x12345678, ULL_CONST(0xdeadbeef, 0x98765432), {0,1,2,3,4,5,6,7}} |
static const MYSTRUCT | test_mystruct2 = {0x91827364, ULL_CONST(0x88776655, 0x44332211), {3,6,1,4,0,1,3,0}} |
static const MYSTRUCT | test_mystruct3 = {0x1a1b1c1d, ULL_CONST(0x1e1f1011, 0x12131415), {9,2,4,5,6,5,1,3}} |
static const MYSTRUCT | test_mystruct4 = {0x2a2b2c2d, ULL_CONST(0x2e2f2021, 0x22232425), {0,4,6,7,3,6,7,4}} |
static const MYSTRUCT | test_mystruct5 = {0x3a3b3c3d, ULL_CONST(0x3e3f3031, 0x32333435), {1,6,7,3,8,4,6,5}} |
static const MYSTRUCT | test_mystruct6 = {0x4a4b4c4d, ULL_CONST(0x4e4f4041, 0x42434445), {3,6,5,3,4,8,0,9}} |
static const MYSTRUCT | test_mystruct7 = {0x5a5b5c5d, ULL_CONST(0x5e5f5051, 0x52535455), {1,8,4,4,4,2,3,1}} |
static const struct thin | test_thin_struct = {-456, 78} |
static const RECT | test_rect1 = {1,2,3,4} |
static const RECT | test_rect2 = {5,6,7,8} |
static const RECT | test_rect3 = {9,10,11,12} |
static const RECT | test_rect4 = {13,14,15,16} |
static const RECT | test_rect5 = {17,18,19,20} |
static const RECT | test_rect6 = {21,22,23,24} |
static const RECT | test_rect7 = {25,26,27,28} |
static const array_t | test_array1 = {1,2,3,4} |
static const array_t | test_array2 = {5,6,7,8} |
static const array_t | test_array3 = {9,10,11,12} |
static const array_t | test_array4 = {13,14,15,16} |
static const array_t | test_array5 = {17,18,19,20} |
static const array_t | test_array6 = {21,22,23,24} |
static int | external_connections |
static BOOL | expect_last_release_closes |
static const IExternalConnectionVtbl | ExternalConnectionVtbl |
static IExternalConnection | ExternalConnection = { &ExternalConnectionVtbl } |
static ItestDual | TestDual = { &TestDualVtbl } |
static ItestDual | TestDualDisp = { &TestDualVtbl } |
static const ITestSecondIfaceVtbl | TestSecondIfaceVtbl |
static ITestSecondIface | TestSecondIface = { &TestSecondIfaceVtbl } |
static ITestSecondDispVtbl | TestSecondDispVtbl |
static ITestSecondDisp | TestSecondDisp = { &TestSecondDispVtbl } |
static ItestDualVtbl | TestDualVtbl |
static const ISomethingFromDispatchVtbl | disp_obj_vtbl |
static const ICoclass1Vtbl | coclass1_vtbl |
static const ICoclass2Vtbl | coclass2_vtbl |
static int | testmode |
static const struct IWidgetVtbl | Widget_VTable |
static const IStaticWidgetVtbl | StaticWidgetVtbl |
static IStaticWidget | StaticWidget = { &StaticWidgetVtbl } |
static const IKindaEnumWidgetVtbl | KindaEnumWidget_VTable |
static INonOleAutomationVtbl | NonOleAutomation_VTable |
static INonOleAutomation | NonOleAutomation = { &NonOleAutomation_VTable } |
#define COBJMACROS |
Definition at line 22 of file tmarshal.c.
#define CONST_VTABLE |
Definition at line 23 of file tmarshal.c.
Definition at line 36 of file tmarshal.c.
#define release_iface | ( | a | ) | release_iface_(__LINE__, a) |
Definition at line 43 of file tmarshal.c.
Definition at line 78 of file tmarshal.c.
Definition at line 46 of file tmarshal.c.
|
static |
Definition at line 1212 of file tmarshal.c.
Referenced by test_marshal_iface(), and Widget_iface_in().
Definition at line 1367 of file tmarshal.c.
Referenced by test_marshal_safearray(), and Widget_safearray().
Definition at line 532 of file tmarshal.c.
|
static |
Definition at line 560 of file tmarshal.c.
|
static |
Definition at line 553 of file tmarshal.c.
Definition at line 547 of file tmarshal.c.
|
static |
Definition at line 567 of file tmarshal.c.
Definition at line 509 of file tmarshal.c.
Definition at line 538 of file tmarshal.c.
Definition at line 574 of file tmarshal.c.
Definition at line 585 of file tmarshal.c.
|
static |
Definition at line 610 of file tmarshal.c.
|
static |
Definition at line 603 of file tmarshal.c.
Definition at line 597 of file tmarshal.c.
|
static |
Definition at line 617 of file tmarshal.c.
Definition at line 579 of file tmarshal.c.
Definition at line 591 of file tmarshal.c.
Definition at line 624 of file tmarshal.c.
|
static |
Definition at line 653 of file tmarshal.c.
Referenced by test_marshal_coclass(), and Widget_Coclass_ptr().
|
static |
Definition at line 484 of file tmarshal.c.
Referenced by test_marshal_dispinterface(), test_marshal_iface(), test_marshal_struct(), Widget_iface_out(), Widget_iface_ptr(), and Widget_variant_array().
Definition at line 425 of file tmarshal.c.
Definition at line 467 of file tmarshal.c.
|
static |
Definition at line 453 of file tmarshal.c.
|
static |
Definition at line 446 of file tmarshal.c.
|
static |
Definition at line 440 of file tmarshal.c.
|
static |
Definition at line 460 of file tmarshal.c.
|
static |
Definition at line 410 of file tmarshal.c.
Definition at line 431 of file tmarshal.c.
Definition at line 172 of file tmarshal.c.
Referenced by test_external_connection(), test_marshal_dispinterface(), and test_typelibmarshal().
|
static |
Definition at line 201 of file tmarshal.c.
|
static |
Definition at line 191 of file tmarshal.c.
|
static |
Definition at line 184 of file tmarshal.c.
|
static |
Definition at line 196 of file tmarshal.c.
|
static |
Definition at line 210 of file tmarshal.c.
Definition at line 1743 of file tmarshal.c.
Referenced by test_StaticWidget(), and Widget_Create().
Definition at line 90 of file tmarshal.c.
Referenced by start_host_object2().
|
inlinestatic |
Definition at line 499 of file tmarshal.c.
Referenced by coclass1_AddRef(), coclass1_QueryInterface(), and coclass1_Release().
|
inlinestatic |
Definition at line 504 of file tmarshal.c.
Referenced by coclass2_AddRef(), coclass2_QueryInterface(), and coclass2_Release().
|
inlinestatic |
Definition at line 1719 of file tmarshal.c.
Referenced by KindaEnum_AddRef(), and KindaEnum_Release().
|
inlinestatic |
Definition at line 405 of file tmarshal.c.
Referenced by disp_obj_AddRef(), and disp_obj_Release().
|
inlinestatic |
Definition at line 671 of file tmarshal.c.
Referenced by Widget_AddRef(), Widget_GetIDsOfNames(), Widget_GetTypeInfo(), Widget_GetTypeInfoCount(), Widget_Invoke(), and Widget_Release().
Definition at line 1810 of file tmarshal.c.
|
static |
Definition at line 1857 of file tmarshal.c.
Definition at line 1844 of file tmarshal.c.
|
static |
Definition at line 1833 of file tmarshal.c.
|
static |
Definition at line 1792 of file tmarshal.c.
Definition at line 1818 of file tmarshal.c.
Definition at line 1851 of file tmarshal.c.
|
static |
Definition at line 1875 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 1354 of file tmarshal.c.
Referenced by test_marshal_safearray(), and Widget_safearray().
Definition at line 1897 of file tmarshal.c.
Definition at line 1907 of file tmarshal.c.
Definition at line 1913 of file tmarshal.c.
Definition at line 1929 of file tmarshal.c.
Referenced by test_typelibmarshal().
|
static |
Definition at line 1886 of file tmarshal.c.
Definition at line 1902 of file tmarshal.c.
Definition at line 1724 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 37 of file tmarshal.c.
|
static |
Definition at line 155 of file tmarshal.c.
Referenced by test_external_connection(), test_marshal_dispinterface(), and test_typelibmarshal().
|
static |
Definition at line 133 of file tmarshal.c.
Referenced by start_host_object().
START_TEST | ( | tmarshal | ) |
Definition at line 3680 of file tmarshal.c.
Definition at line 1647 of file tmarshal.c.
|
static |
Definition at line 1670 of file tmarshal.c.
|
static |
Definition at line 1663 of file tmarshal.c.
|
static |
Definition at line 1657 of file tmarshal.c.
|
static |
Definition at line 1677 of file tmarshal.c.
|
static |
Definition at line 1634 of file tmarshal.c.
Definition at line 1652 of file tmarshal.c.
Definition at line 1685 of file tmarshal.c.
|
static |
Definition at line 1692 of file tmarshal.c.
Definition at line 3437 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 3532 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 3509 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 2581 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 1945 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2394 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2632 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 3649 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 2156 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2042 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2498 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2522 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 2446 of file tmarshal.c.
Referenced by test_typelibmarshal().
Definition at line 3467 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 2828 of file tmarshal.c.
Referenced by START_TEST().
Definition at line 349 of file tmarshal.c.
|
static |
Definition at line 371 of file tmarshal.c.
|
static |
Definition at line 365 of file tmarshal.c.
Definition at line 359 of file tmarshal.c.
|
static |
Definition at line 378 of file tmarshal.c.
|
static |
Definition at line 325 of file tmarshal.c.
Definition at line 354 of file tmarshal.c.
Definition at line 269 of file tmarshal.c.
|
static |
Definition at line 291 of file tmarshal.c.
|
static |
Definition at line 285 of file tmarshal.c.
|
static |
Definition at line 279 of file tmarshal.c.
|
static |
Definition at line 298 of file tmarshal.c.
|
static |
Definition at line 264 of file tmarshal.c.
Definition at line 274 of file tmarshal.c.
Definition at line 306 of file tmarshal.c.
Definition at line 240 of file tmarshal.c.
|
static |
Definition at line 235 of file tmarshal.c.
Definition at line 245 of file tmarshal.c.
Definition at line 250 of file tmarshal.c.
Definition at line 694 of file tmarshal.c.
|
static |
Definition at line 1466 of file tmarshal.c.
|
static |
Definition at line 1110 of file tmarshal.c.
|
static |
Definition at line 1129 of file tmarshal.c.
|
static |
Definition at line 1294 of file tmarshal.c.
Definition at line 1001 of file tmarshal.c.
Definition at line 872 of file tmarshal.c.
Definition at line 888 of file tmarshal.c.
Definition at line 880 of file tmarshal.c.
|
static |
Definition at line 958 of file tmarshal.c.
|
static |
Definition at line 1518 of file tmarshal.c.
|
static |
Definition at line 1534 of file tmarshal.c.
Definition at line 1444 of file tmarshal.c.
|
static |
Definition at line 1763 of file tmarshal.c.
Referenced by KindaEnum_Next(), and test_DispCallFunc().
|
static |
Definition at line 809 of file tmarshal.c.
Definition at line 951 of file tmarshal.c.
|
static |
Definition at line 1148 of file tmarshal.c.
Definition at line 799 of file tmarshal.c.
Definition at line 976 of file tmarshal.c.
|
static |
Definition at line 828 of file tmarshal.c.
|
static |
Definition at line 750 of file tmarshal.c.
Definition at line 863 of file tmarshal.c.
|
static |
Definition at line 733 of file tmarshal.c.
Definition at line 718 of file tmarshal.c.
|
static |
Definition at line 1229 of file tmarshal.c.
|
static |
Definition at line 1242 of file tmarshal.c.
|
static |
Definition at line 1257 of file tmarshal.c.
Definition at line 1159 of file tmarshal.c.
|
static |
Definition at line 1175 of file tmarshal.c.
|
static |
Definition at line 769 of file tmarshal.c.
Definition at line 845 of file tmarshal.c.
|
static |
Definition at line 1510 of file tmarshal.c.
|
static |
Definition at line 1404 of file tmarshal.c.
Definition at line 1503 of file tmarshal.c.
Definition at line 1418 of file tmarshal.c.
Definition at line 1033 of file tmarshal.c.
Definition at line 1026 of file tmarshal.c.
Definition at line 791 of file tmarshal.c.
Definition at line 967 of file tmarshal.c.
Definition at line 837 of file tmarshal.c.
|
static |
Definition at line 676 of file tmarshal.c.
Referenced by Widget_Clone(), Widget_CloneCoclass(), and Widget_CloneDispatch().
|
static |
Definition at line 1430 of file tmarshal.c.
Definition at line 702 of file tmarshal.c.
|
static |
Definition at line 1386 of file tmarshal.c.
Definition at line 855 of file tmarshal.c.
Definition at line 1424 of file tmarshal.c.
|
static |
Definition at line 896 of file tmarshal.c.
Definition at line 917 of file tmarshal.c.
|
static |
Definition at line 1075 of file tmarshal.c.
|
static |
Definition at line 1040 of file tmarshal.c.
|
static |
Definition at line 1324 of file tmarshal.c.
|
static |
Definition at line 1480 of file tmarshal.c.
Definition at line 909 of file tmarshal.c.
|
static |
Definition at line 629 of file tmarshal.c.
Referenced by create_coclass_obj().
|
static |
Definition at line 641 of file tmarshal.c.
Referenced by create_coclass_obj().
|
static |
Definition at line 472 of file tmarshal.c.
Referenced by create_disp_obj().
|
static |
Definition at line 182 of file tmarshal.c.
Referenced by ExternalConnection_ReleaseConnection(), and test_external_connection().
|
static |
Definition at line 181 of file tmarshal.c.
Referenced by ExternalConnection_AddConnection(), ExternalConnection_ReleaseConnection(), and test_external_connection().
|
static |
Definition at line 231 of file tmarshal.c.
Referenced by TestDual_QueryInterface().
|
static |
Definition at line 223 of file tmarshal.c.
|
static |
Definition at line 1864 of file tmarshal.c.
Referenced by KindaEnumWidget_Create().
Definition at line 33 of file tmarshal.c.
|
static |
Definition at line 1927 of file tmarshal.c.
Referenced by test_typelibmarshal().
|
static |
Definition at line 1918 of file tmarshal.c.
|
static |
Definition at line 1711 of file tmarshal.c.
Referenced by test_StaticWidget().
|
static |
Definition at line 1699 of file tmarshal.c.
|
static |
Definition at line 71 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_struct(), Widget_array(), and Widget_complex_struct().
|
static |
Definition at line 72 of file tmarshal.c.
Referenced by test_marshal_array().
|
static |
Definition at line 73 of file tmarshal.c.
Referenced by test_marshal_array(), and Widget_array().
|
static |
Definition at line 74 of file tmarshal.c.
Referenced by Widget_array().
|
static |
Definition at line 75 of file tmarshal.c.
Referenced by test_marshal_array(), and Widget_array().
|
static |
Definition at line 76 of file tmarshal.c.
Referenced by test_marshal_array(), and Widget_array().
Definition at line 48 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_bstr(), Widget_bstr(), and Widget_variant_array().
Definition at line 49 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_bstr(), test_marshal_struct(), test_marshal_variant(), Widget_bstr(), Widget_complex_struct(), Widget_variant(), and Widget_variant_array().
Definition at line 50 of file tmarshal.c.
Referenced by test_marshal_bstr(), and Widget_bstr().
Definition at line 51 of file tmarshal.c.
Referenced by test_marshal_bstr(), and Widget_bstr().
|
static |
Definition at line 53 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_struct(), Widget_complex_struct(), Widget_mystruct(), Widget_mystruct_array(), and Widget_mystruct_ptr_ptr().
|
static |
Definition at line 54 of file tmarshal.c.
Referenced by test_marshal_array(), test_marshal_struct(), and Widget_mystruct_array().
|
static |
Definition at line 55 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
|
static |
Definition at line 56 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
|
static |
Definition at line 57 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
|
static |
Definition at line 58 of file tmarshal.c.
Referenced by Widget_mystruct().
|
static |
Definition at line 59 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_mystruct().
Definition at line 63 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 64 of file tmarshal.c.
Referenced by test_gethrgn(), and test_marshal_struct().
Definition at line 65 of file tmarshal.c.
Referenced by test_gethrgn(), test_marshal_struct(), and Widget_rect().
Definition at line 66 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 67 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 68 of file tmarshal.c.
Referenced by Widget_rect().
Definition at line 69 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_rect().
Definition at line 61 of file tmarshal.c.
Referenced by test_marshal_struct(), and Widget_thin_struct().
|
static |
Definition at line 233 of file tmarshal.c.
Referenced by StaticWidget_TestDual(), test_external_connection(), TestDual_QueryInterface(), TestSecondDisp_QueryInterface(), and TestSecondIface_QueryInterface().
|
static |
Definition at line 233 of file tmarshal.c.
Referenced by test_StaticWidget(), and TestDual_QueryInterface().
|
static |
Definition at line 386 of file tmarshal.c.
|
static |
Definition at line 662 of file tmarshal.c.
Referenced by test_marshal_bstr(), test_marshal_coclass(), test_marshal_iface(), test_marshal_pointer(), test_marshal_variant(), Widget_bstr(), Widget_Coclass_ptr(), Widget_iface_in(), Widget_iface_out(), Widget_iface_ptr(), Widget_int_ptr(), Widget_int_ptr_ptr(), and Widget_variant().
|
static |
Definition at line 323 of file tmarshal.c.
Referenced by TestDual_QueryInterface().
|
static |
Definition at line 312 of file tmarshal.c.
|
static |
Definition at line 262 of file tmarshal.c.
Referenced by StaticWidget_TestSecondIface(), and TestDual_QueryInterface().
|
static |
Definition at line 255 of file tmarshal.c.
Definition at line 1574 of file tmarshal.c.
Referenced by Widget_Create().