Exemplo n.º 1
0
 static unsafe extern bool SamplePInvoke(CSelectedObject wukwi,
                                         //Delegate d1,
                                         //[In]Delegate d2,
                                         //[Out] Delegate d3,
                                         //[In,Out] Delegate d4,
                                         //ref Delegate d5,
                                         //[In] ref Delegate d6,
                                         //out Delegate d7,
                                         //[In,Out] ref Delegate d8,
                                         //IComparable i1,
                                         //[In] IComparable i2,
                                         //[Out] IComparable i3,
                                         //[In,Out] IComparable i4,
                                         //ref IComparable i5,
                                         //[In]ref IComparable i6,
                                         //out IComparable i7,
                                         //[In,Out] ref IComparable i8,
                                         //object o1,
                                         //[In] object o2,
                                         //[Out] object o3,
                                         //[In,Out] object o4,
                                         //ref object o5,
                                         //[In]ref object o6,
                                         //out object o7,
                                         //[In,Out]ref object o8,
                                         [MarshalAs(UnmanagedType.IDispatch)] object c1,
                                         [MarshalAs(UnmanagedType.IDispatch)][In] object c2,
                                         [MarshalAs(UnmanagedType.IDispatch)][Out] object c3,
                                         [MarshalAs(UnmanagedType.IDispatch)][In, Out] object c4,
                                         [MarshalAs(UnmanagedType.IDispatch)] ref object c5,
                                         [MarshalAs(UnmanagedType.IDispatch)][In] ref object c6,
                                         [MarshalAs(UnmanagedType.IDispatch)] out object c7,
                                         [MarshalAs(UnmanagedType.IDispatch)][In, Out] ref object c8
                                         );
Exemplo n.º 2
0
 static unsafe extern bool SamplePInvoke(CSelectedObject wukwi,
     //Delegate d1,
     //[In]Delegate d2,
     //[Out] Delegate d3,
     //[In,Out] Delegate d4,
     //ref Delegate d5,
     //[In] ref Delegate d6,
     //out Delegate d7,
     //[In,Out] ref Delegate d8,
     //IComparable i1,
     //[In] IComparable i2,
     //[Out] IComparable i3,
     //[In,Out] IComparable i4,
     //ref IComparable i5,
     //[In]ref IComparable i6,
     //out IComparable i7,
     //[In,Out] ref IComparable i8,
     //object o1,
     //[In] object o2,
     //[Out] object o3,
     //[In,Out] object o4,
     //ref object o5,
     //[In]ref object o6,
     //out object o7,
     //[In,Out]ref object o8,
     [MarshalAs(UnmanagedType.IDispatch)] object c1,
     [MarshalAs(UnmanagedType.IDispatch)][In] object c2,
     [MarshalAs(UnmanagedType.IDispatch)][Out] object c3,
     [MarshalAs(UnmanagedType.IDispatch)][In, Out] object c4,
     [MarshalAs(UnmanagedType.IDispatch)]ref object c5,
     [MarshalAs(UnmanagedType.IDispatch)][In]ref object c6,
     [MarshalAs(UnmanagedType.IDispatch)]out object c7,
     [MarshalAs(UnmanagedType.IDispatch)][In, Out]ref object c8
     );