Fixed RtlSetEnvironmentVariable to deal properly with Unicode strings
[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(ICOM_MSVTABLE_COMPAT) && (!defined(__cplusplus) || defined(CINTERFACE))")
25 cpp_quote("# define ICOM_MSVTABLE_COMPAT_FIELDS long dummyRTTI1,dummyRTTI2;")
26 cpp_quote("# define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE 0,0,")
27 cpp_quote("#else")
28 cpp_quote("# define ICOM_MSVTABLE_COMPAT_FIELDS")
29 cpp_quote("# define ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE")
30 cpp_quote("#endif")
31
32 /* Interfaces */
33
34 [
35   local,
36   object,
37   uuid(00000000-0000-0000-C000-000000000046),
38   pointer_default(unique)
39 ]
40 interface IUnknown
41 {
42   typedef [unique] IUnknown *LPUNKNOWN;
43
44   HRESULT QueryInterface(
45     [in] REFIID riid,
46     [out, iid_is(riid)] void **ppvObject);
47   ULONG AddRef();
48   ULONG Release();
49 }
50
51 [
52   object,
53   uuid(00000001-0000-0000-C000-000000000046),
54   pointer_default(unique)
55 ]
56 interface IClassFactory : IUnknown
57 {
58   typedef [unique] IClassFactory *LPCLASSFACTORY;
59
60   [local]
61   HRESULT CreateInstance(
62     [in, unique] IUnknown *pUnkOuter,
63     [in] REFIID riid,
64     [out, iid_is(riid)] void **ppvObject);
65
66   [call_as(CreateInstance)]
67   HRESULT RemoteCreateInstance(
68     [in] REFIID riid,
69     [out, iid_is(riid)] IUnknown **ppvObject);
70
71   [local]
72   HRESULT LockServer(
73     [in] BOOL fLock);
74
75   [call_as(LockServer)]
76   HRESULT RemoteLockServer(
77     [in] BOOL fLock);
78 }