Esempio n. 1
0
    public static int test_0_VariantBool_In_Managed()
    {
        MarshalBoolInDelegate fcn = new MarshalBoolInDelegate(new marshalbool().MarshalBoolInHelper);
        int ret;

        //
        //  Beginn Aenderung Test
        //
        Console.WriteLine("\n\t****C#: MarshalBoolInDelegate fcn = new MarshalBoolInDelegate (new marshalbool ().MarshalBoolInHelper) done ****\n");
        //
        //  Ende Aenderung Test
        //
        ret = mono_test_managed_marshal_bool_in(5, 0, 0, fcn);
        if (ret != 0)
        {
            return(0x0100 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0xFFFF, fcn);
        if (ret != 0)
        {
            return(0x0200 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0x22, fcn);
        if (ret != 0)
        {
            return(0x0300 + ret);
        }
        return(0);
    }
Esempio n. 2
0
    public static int test_0_VariantBool_In_Managed()
    {
        MarshalBoolInDelegate fcn = new MarshalBoolInDelegate(new marshalbool().MarshalBoolInHelper);
        int ret;

        ret = mono_test_managed_marshal_bool_in(5, 0, 0, fcn);
        if (ret != 0)
        {
            return(0x0100 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0xFFFF, fcn);
        if (ret != 0)
        {
            return(0x0200 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(5, 1, 0x22, fcn);
        if (ret != 0)
        {
            return(0x0300 + ret);
        }
        return(0);
    }
Esempio n. 3
0
    public static int test_0_U1_In_Managed()
    {
        MarshalBoolInDelegate fcn = new MarshalBoolInDelegate(MarshalBoolInHelper);
        int ret;

        ret = mono_test_managed_marshal_bool_in(4, 0, 0, fcn);
        if (ret != 0)
        {
            return(0x0100 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(4, 1, 1, fcn);
        if (ret != 0)
        {
            return(0x0200 + ret);
        }
        ret = mono_test_managed_marshal_bool_in(4, 1, 0x22, fcn);
        if (ret != 0)
        {
            return(0x0300 + ret);
        }
        return(0);
    }
Esempio n. 4
0
	public static int test_0_VariantBool_In_Managed ()
	{
		MarshalBoolInDelegate fcn = new MarshalBoolInDelegate (new marshalbool ().MarshalBoolInHelper);
		int ret;

		ret = mono_test_managed_marshal_bool_in (5, 0, 0, fcn);
		if (ret != 0)
			return 0x0100 + ret;
		ret = mono_test_managed_marshal_bool_in (5, 1, 0xFFFF, fcn);
		if (ret != 0)
			return 0x0200 + ret;
		ret = mono_test_managed_marshal_bool_in (5, 1, 0x22, fcn);
		if (ret != 0)
			return 0x0300 + ret;
		return 0;
	}
Esempio n. 5
0
	static extern int mono_test_managed_marshal_bool_in (int arg, uint expected, uint testVal, MarshalBoolInDelegate fcn);
Esempio n. 6
0
	public static int test_0_U1_In_Managed ()
	{
		MarshalBoolInDelegate fcn = new MarshalBoolInDelegate (MarshalBoolInHelper);
		int ret;

		ret = mono_test_managed_marshal_bool_in (4, 0, 0, fcn);
		if (ret != 0)
			return 0x0100 + ret;
		ret = mono_test_managed_marshal_bool_in (4, 1, 1, fcn);
		if (ret != 0)
			return 0x0200 + ret;
		ret = mono_test_managed_marshal_bool_in (4, 1, 0x22, fcn);
		if (ret != 0)
			return 0x0300 + ret;
		return 0;
	}
Esempio n. 7
0
 static extern int mono_test_managed_marshal_bool_in(int arg, uint expected, uint testVal, MarshalBoolInDelegate fcn);