Use the right buffer size in SYSPARAMS_Load instead of some random
[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 /* COM vtable compatibility macros for g++ */
22 /* Included here because the generated header needs them */
23
24 cpp_quote("#if defined(__cplusplus) && !defined(CINTERFACE)")
25 cpp_quote(" #ifdef ICOM_USE_COM_INTERFACE_ATTRIBUTE")
26 cpp_quote("  #define ICOM_COM_INTERFACE_ATTRIBUTE __attribute__((com_interface))")
27 cpp_quote(" #else")
28 cpp_quote("  #define ICOM_COM_INTERFACE_ATTRIBUTE")
29 cpp_quote(" #endif")
30 cpp_quote("#else")
31 cpp_quote(" #ifdef ICOM_MSVTABLE_COMPAT")
32 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_FIELDS \\")
33 cpp_quote("    long dummyRTTI1; \\")
34 cpp_quote("    long dummyRTTI2;")
35 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 0,0,")
36 cpp_quote(" #else")
37 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_FIELDS")
38 cpp_quote("  #define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE")
39 cpp_quote(" #endif")
40 cpp_quote("#endif")
41
42 /* Interfaces */
43
44 [
45   local,
46   object,
47   uuid(00000000-0000-0000-C000-000000000046),
48   pointer_default(unique)
49 ]
50 interface IUnknown
51 {
52   typedef [unique] IUnknown *LPUNKNOWN;
53
54   HRESULT QueryInterface(
55     [in] REFIID riid,
56     [out, iid_is(riid)] void **ppvObject);
57   ULONG AddRef();
58   ULONG Release();
59 }
60
61 [
62   object,
63   uuid(00000001-0000-0000-C000-000000000046),
64   pointer_default(unique)
65 ]
66 interface IClassFactory : IUnknown
67 {
68   typedef [unique] IClassFactory *LPCLASSFACTORY;
69
70   [local]
71   HRESULT CreateInstance(
72     [in, unique] IUnknown *pUnkOuter,
73     [in] REFIID riid,
74     [out, iid_is(riid)] void **ppvObject);
75
76   [call_as(CreateInstance)]
77   HRESULT RemoteCreateInstance(
78     [in] REFIID riid,
79     [out, iid_is(riid)] IUnknown **ppvObject);
80
81   [local]
82   HRESULT LockServer(
83     [in] BOOL fLock);
84
85   [call_as(LockServer)]
86   HRESULT RemoteLockServer(
87     [in] BOOL fLock);
88 }