winebus.sys: Add missing keyboard free_device callback.
[wine.git] / dlls / mscoree / tests / comtest.cs
blob536cd807691e5889be40057c8ead467a554384dc
1 /*
2 * Copyright 2018 Fabian Maurer
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 /* Compile with
20 csc /target:library /out:dll.dll comtest.cs
23 using System.Runtime.InteropServices;
25 namespace DLL
27 [Guid("1dbc4491-080d-45c5-a15d-1e3c4610bdd9"), ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
28 public interface ITest
30 void Func(ref int i);
33 [ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
34 public interface ITest2
36 void Func2(ref int i);
39 [Guid("2e106e50-e7a4-4489-8538-83643f100fdc"), ComVisible(true), ClassInterface(ClassInterfaceType.None)]
40 public class Test : ITest, ITest2
42 public void Func(ref int i)
44 i = 42;
46 public void Func2(ref int i)
48 i = 43;