Merged the two serializer and unserializer functions into one, cleaned
[wine.git] / dlls / olecli / olecli_main.c
blob5d8c6118253aed2fe18eb52892de07134bacbe9c
1 /*
2 * OLECLI library
4 * Copyright 1995 Martin von Loewis
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 /* At the moment, these are only empty stubs.
24 #include "config.h"
26 #include "ole.h"
27 #include "winbase.h"
28 #include "wingdi.h"
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(ole);
35 static LONG OLE_current_handle;
37 /******************************************************************************
38 * OleSavedClientDoc [OLECLI32.45]
40 OLESTATUS WINAPI OleSavedClientDoc(LHCLIENTDOC hDoc)
42 FIXME("(%ld: stub\n", hDoc);
43 return OLE_OK;
46 /******************************************************************************
47 * OleSavedClientDoc [OLECLI.45]
49 OLESTATUS WINAPI OleSavedClientDoc16(LHCLIENTDOC hDoc)
51 FIXME("(%ld: stub\n", hDoc);
52 return OLE_OK;
55 /******************************************************************************
56 * OleRegisterClientDoc [OLECLI.41]
58 OLESTATUS WINAPI OleRegisterClientDoc16(LPCSTR classname, LPCSTR docname,
59 LONG reserved, LHCLIENTDOC *hRet )
61 FIXME("(%s,%s,...): stub\n",classname,docname);
62 *hRet=++OLE_current_handle;
63 return OLE_OK;
66 /******************************************************************************
67 * OleRegisterClientDoc [OLECLI32.41]
69 OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
70 LONG reserved, LHCLIENTDOC *hRet )
72 FIXME("(%s,%s,...): stub\n",classname,docname);
73 *hRet=++OLE_current_handle;
74 return OLE_OK;
77 /******************************************************************************
78 * OleRenameClientDoc [OLECLI.43]
80 OLESTATUS WINAPI OleRenameClientDoc16(LHCLIENTDOC hDoc, LPCSTR newName)
82 FIXME("(%ld,%s,...): stub\n",hDoc, newName);
83 return OLE_OK;
86 /******************************************************************************
87 * OleRenameClientDoc [OLECLI32.43]
89 OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
91 FIXME("(%ld,%s,...): stub\n",hDoc, newName);
92 return OLE_OK;
95 /******************************************************************************
96 * OleRevokeClientDoc [OLECLI.42]
98 OLESTATUS WINAPI OleRevokeClientDoc16(LHCLIENTDOC hServerDoc)
100 FIXME("(%ld): stub\n",hServerDoc);
101 return OLE_OK;
104 /******************************************************************************
105 * OleRevokeClientDoc [OLECLI32.42]
107 OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
109 FIXME("(%ld): stub\n",hServerDoc);
110 return OLE_OK;
113 /******************************************************************************
114 * OleRevertClientDoc [OLECLI.44]
116 OLESTATUS WINAPI OleRevertClientDoc16(LHCLIENTDOC hServerDoc)
118 FIXME("(%ld): stub\n", hServerDoc);
119 return OLE_OK;
122 /******************************************************************************
123 * OleEnumObjects [OLECLI.47]
125 OLESTATUS WINAPI OleEnumObjects16(LHCLIENTDOC hServerDoc, SEGPTR data)
127 FIXME("(%ld, %04x:%04x): stub\n", hServerDoc, HIWORD(data),
128 LOWORD(data));
129 return OLE_OK;
132 /******************************************************************************
133 * OleCreateLinkFromClip [OLECLI.11]
135 OLESTATUS WINAPI OleCreateLinkFromClip16( LPCSTR name, SEGPTR olecli, LHCLIENTDOC hclientdoc,
136 LPCSTR xname, SEGPTR lpoleob, UINT16 render,
137 UINT16 clipformat )
139 FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
140 name, HIWORD(olecli), LOWORD(olecli), hclientdoc, xname, HIWORD(lpoleob),
141 LOWORD(lpoleob), render, clipformat);
142 return OLE_OK;
145 /******************************************************************************
146 * OleCreateLinkFromClip [OLECLI32.11]
148 OLESTATUS WINAPI OleCreateLinkFromClip(
149 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
150 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
152 FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
153 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
154 return OLE_OK;
157 /******************************************************************************
158 * OleQueryLinkFromClip [OLECLI.9]
160 OLESTATUS WINAPI OleQueryLinkFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat)
162 FIXME("(%s, %d, %d): stub!\n", name, render, clipformat);
163 return OLE_OK;
166 /******************************************************************************
167 * OleQueryLinkFromClip [OLECLI32.9]
169 OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
170 FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
171 return OLE_OK;
174 /******************************************************************************
175 * OleQueryCreateFromClip [OLECLI.10]
177 OLESTATUS WINAPI OleQueryCreateFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat)
179 FIXME("(%s, %d, %d): stub!\n", name, render, clipformat);
180 return OLE_OK;
183 /******************************************************************************
184 * OleQueryCreateFromClip [OLECLI32.10]
186 OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
187 FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
188 return OLE_OK;
191 /******************************************************************************
192 * OleIsDcMeta [OLECLI32.60]
194 BOOL WINAPI OleIsDcMeta(HDC hdc)
196 TRACE("(%04x)\n",hdc);
197 return GetObjectType( hdc ) == OBJ_METADC;
201 /******************************************************************************
202 * OleIsDcMeta [OLECLI.60]
204 BOOL16 WINAPI OleIsDcMeta16(HDC16 hdc)
206 return OleIsDcMeta( hdc );
210 /******************************************************************************
211 * OleSetHostNames [OLECLI32.15]
213 OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
214 FIXME("(%p,%s,%s): stub\n",oleob,name1,name2);
215 return OLE_OK;
218 /******************************************************************************
219 * OleQueryType [OLECLI.14]
221 OLESTATUS WINAPI OleQueryType16(LPOLEOBJECT oleob, SEGPTR xlong) {
222 FIXME("(%p, %p): stub!\n", oleob, MapSL(xlong));
223 return OLE_OK;
226 /******************************************************************************
227 * OleQueryType [OLECLI32.14]
229 OLESTATUS WINAPI OleQueryType(LPOLEOBJECT oleob,LONG*xlong) {
230 FIXME("(%p,%p): stub!\n",oleob,xlong);
231 if (!oleob)
232 return 0x10;
233 TRACE("Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
234 oleob->lpvtbl->QueryType,oleob,xlong);
235 return oleob->lpvtbl->QueryType(oleob,xlong);
238 /******************************************************************************
239 * OleCreateFromClip [OLECLI.12]
241 OLESTATUS WINAPI OleCreateFromClip16( LPCSTR name, SEGPTR olecli, LHCLIENTDOC hclientdoc,
242 LPCSTR xname, SEGPTR lpoleob,
243 UINT16 render, UINT16 clipformat )
245 FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
246 name, HIWORD(olecli), LOWORD(olecli), hclientdoc, xname, HIWORD(lpoleob),
247 LOWORD(lpoleob), render, clipformat);
248 return OLE_OK;
251 /******************************************************************************
252 * OleCreateFromClip [OLECLI32.12]
254 OLESTATUS WINAPI OleCreateFromClip(
255 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
256 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
258 FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
259 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
260 /* clipb type, object kreieren entsprechend etc. */
261 return OLE_OK;