quartz: Don't cast WSTR to BSTR, convert properly instead.
[wine/testsucceed.git] / dlls / stdole32.tlb / std_ole_v1.idl
blobbf9cb7e2011a120b533ef8741ea93ae1f3943c71
1 /*
2 * Copyright (C) 2003 Robert Shearman
3 * 2005 Huw Davies
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 uuid(00020430-0000-0000-C000-000000000046),
23 version(1.0),
24 helpstring("OLE Automation")
26 library stdole
28 /* typedefs aren't stored in the type library.
29 These type names are known by the type compiler so it
30 doesn't really matter what we define them as. */
32 typedef void *VARIANT;
33 typedef wchar_t *BSTR;
34 typedef unsigned long SCODE;
35 typedef unsigned long HRESULT;
37 typedef struct GUID {
38 unsigned long Data1;
39 unsigned short Data2;
40 unsigned short Data3;
41 unsigned char Data4[ 8 ];
42 } GUID;
44 typedef struct DISPPARAMS {
45 VARIANT *rgvarg;
46 long *rgdispidNamedArgs;
47 unsigned int cArgs;
48 unsigned int cNamedArgs;
49 } DISPPARAMS;
51 typedef struct EXCEPINFO {
52 unsigned short wCode;
53 unsigned short wReserved;
54 BSTR bstrSource;
55 BSTR bstrDescription;
56 BSTR bstrHelpFile;
57 unsigned long dwHelpContext;
58 void *pvReserved;
59 void *pfnDeferredFillIn;
60 SCODE scode;
61 } EXCEPINFO;
64 odl,
65 uuid(00000000-0000-0000-C000-000000000046)
67 interface IUnknown
69 [restricted]
70 HRESULT QueryInterface(
71 [in] GUID *riid,
72 [out] void **ppvObj);
74 [restricted]
75 unsigned long AddRef();
77 [restricted]
78 unsigned long Release();
82 odl,
83 uuid(00020400-0000-0000-C000-000000000046)
85 interface IDispatch : IUnknown
87 [restricted]
88 HRESULT GetTypeInfoCount(
89 [out] unsigned int *pctinfo);
91 [restricted]
92 HRESULT GetTypeInfo(
93 [in] unsigned int itinfo,
94 [in] unsigned long lcid,
95 [out] void **pptinfo);
97 [restricted]
98 HRESULT GetIDsOfNames(
99 [in] GUID *riid,
100 [in] char **rgszNames,
101 [in] unsigned int cNames,
102 [in] unsigned long lcid,
103 [out] long *rgdispid);
105 [restricted]
106 HRESULT Invoke(
107 [in] long dispidMember,
108 [in] GUID *riid,
109 [in] unsigned long lcid,
110 [in] unsigned short wFlags,
111 [in] DISPPARAMS *pdispparams,
112 [out] VARIANT *pvarResult,
113 [out] EXCEPINFO *pexcepinfo,
114 [out] unsigned int *puArgErr);
119 odl,
120 uuid(00020404-0000-0000-C000-000000000046)
122 interface IEnumVARIANT : IUnknown
124 HRESULT Next(
125 [in] unsigned long celt,
126 [in] VARIANT *rgvar,
127 [out] unsigned long *pceltFetched);
129 HRESULT Skip(
130 [in] unsigned long celt);
132 HRESULT Reset();
134 HRESULT Clone(
135 [out] IEnumVARIANT **ppenum);