Added missing LPDROPFILES definition.
[wine] / include / unknwn.idl
1 /*
2  * Copyright 2002 Ove Kaaven
3  *
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.
8  *
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.
13  *
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 import "wtypes.idl";
20
21 /* need this until objidl.h and objbase.h is complete */
22 cpp_quote("#define __WINE_INCLUDE_UNKNWN")
23 cpp_quote("#include \"wine/obj_base.h\"")
24 cpp_quote("#undef __WINE_INCLUDE_UNKNWN")
25
26 /* COM vtable compatibility macros for g++ */
27 /* Included here because the generated header needs them */
28
29 cpp_quote("#if defined(__cplusplus) && !defined(CINTERFACE)")
30 cpp_quote(" #ifdef ICOM_USE_COM_INTERFACE_ATTRIBUTE")
31 cpp_quote("  #define ICOM_COM_INTERFACE_ATTRIBUTE __attribute__((com_interface))")
32 cpp_quote(" #else")
33 cpp_quote("  #define ICOM_COM_INTERFACE_ATTRIBUTE")
34 cpp_quote(" #endif")
35 cpp_quote("#else")
36 cpp_quote(" #ifdef ICOM_MSVTABLE_COMPAT")
37 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_FIELDS \\")
38 cpp_quote("    long dummyRTTI1; \\")
39 cpp_quote("    long dummyRTTI2;")
40 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 0,0,")
41 cpp_quote(" #else")
42 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_FIELDS")
43 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE")
44 cpp_quote(" #endif")
45 cpp_quote("#endif")
46
47 /* Interfaces */
48
49 [
50   local,
51   object,
52   uuid(00000000-0000-0000-C000-000000000046),
53   pointer_default(unique)
54 ]
55 interface IUnknown
56 {
57   typedef [unique] IUnknown *LPUNKNOWN;
58
59   HRESULT QueryInterface(
60     [in] REFIID riid,
61     [out, iid_is(riid)] void **ppvObject);
62   ULONG AddRef();
63   ULONG Release();
64 }
65
66 [
67   object,
68   uuid(00000001-0000-0000-C000-000000000046),
69   pointer_default(unique)
70 ]
71 interface IClassFactory : IUnknown
72 {
73   typedef [unique] IClassFactory *LPCLASSFACTORY;
74
75   [local]
76   HRESULT CreateInstance(
77     [in, unique] IUnknown *pUnkOuter,
78     [in] REFIID riid,
79     [out, iid_is(riid)] void **ppvObject);
80
81   [call_as(CreateInstance)]
82   HRESULT RemoteCreateInstance(
83     [in] REFIID riid,
84     [out, iid_is(riid)] IUnknown **ppvObject);
85
86   [local]
87   HRESULT LockServer(
88     [in] BOOL fLock);
89
90   [call_as(LockServer)]
91   HRESULT RemoteLockServer(
92     [in] BOOL fLock);
93 }