示例#1
0
    public static int test_0_In_Args_Value_On_Stack_ADDR_In_RCX()
    {
        int retCode;

        winx64_struct5 t_winx64_struct5 = new winx64_struct5(4, 5, 6);

        t_winx64_struct5.a = 4;
        t_winx64_struct5.b = 5;
        t_winx64_struct5.c = 6;

        if ((retCode = mono_test_Winx64_struct5_in(t_winx64_struct5)) != 0)
        {
            return(100 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_struct5_in (t_winx64_struct5) done ****\n");
        //
        //  Ende Aenderung Test
        //
        winx64_struct6 t_winx64_struct6 = new winx64_struct6(new winx64_struct1(4), 5, 6);

        if ((retCode = mono_test_Winx64_struct6_in(t_winx64_struct6)) != 0)
        {
            return(200 + retCode);
        }
        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: mono_test_Winx64_struct6_in (t_winx64_struct6) done ****\n");
        //
        //  Ende Aenderung Test
        //
        return(0);
    }
示例#2
0
    public static int test_0_In_Args_Value_On_Stack_ADDR_In_RCX()
    {
        int retCode;

        winx64_struct5 t_winx64_struct5 = new winx64_struct5(4, 5, 6);

        t_winx64_struct5.a = 4;
        t_winx64_struct5.b = 5;
        t_winx64_struct5.c = 6;

        if ((retCode = mono_test_Winx64_struct5_in(t_winx64_struct5)) != 0)
        {
            return(100 + retCode);
        }

        winx64_struct6 t_winx64_struct6 = new winx64_struct6(new winx64_struct1(4), 5, 6);

        if ((retCode = mono_test_Winx64_struct6_in(t_winx64_struct6)) != 0)
        {
            return(200 + retCode);
        }

        return(0);
    }
示例#3
0
 static extern int mono_test_Winx64_struct6_in([MarshalAs(UnmanagedType.Struct)] winx64_struct6 var);
 public static int test_0_In_Args_Value_On_Stack_ADDR_In_RCX()
 {
     int
     retCode;
     winx64_struct5
     t_winx64_struct5
     =
     new
     winx64_struct5
     (4,
     5,
     6);
     t_winx64_struct5.a
     =
     4;
     t_winx64_struct5.b
     =
     5;
     t_winx64_struct5.c
     =
     6;
     if
     ((retCode
     =
     mono_test_Winx64_struct5_in
     (t_winx64_struct5))
     !=
     0)
     return
     100
     +
     retCode;
     winx64_struct6
     t_winx64_struct6
     =
     new
     winx64_struct6
     (new
     winx64_struct1
     (4),
     5,
     6);
     if
     ((retCode
     =
     mono_test_Winx64_struct6_in
     (t_winx64_struct6))
     !=
     0)
     return
     200
     +
     retCode;
     return
     0;
 }