- Separate application calls to ShowOwnedPopups from Wine calls (in
[wine.git] / dlls / olecli / olecli_main.c
blob69768ceeaf2fbfde0d4b5ffbff94d3a15a6c99c8
1 /*
2 * OLECLI library
4 * Copyright 1995 Martin von Loewis
5 */
7 /* At the moment, these are only empty stubs.
8 */
9 #include "windef.h"
10 #include "wingdi.h"
11 #include "wtypes.h"
12 #include "ldt.h"
13 #include "ole.h"
14 #include "debugtools.h"
16 DEFAULT_DEBUG_CHANNEL(ole);
19 static LONG OLE_current_handle;
21 /******************************************************************************
22 * OleRegisterClientDoc16 [OLECLI.41]
24 OLESTATUS WINAPI OleRegisterClientDoc16(LPCSTR classname, LPCSTR docname,
25 LONG reserved, LHCLIENTDOC *hRet )
27 FIXME("(%s,%s,...): stub\n",classname,docname);
28 *hRet=++OLE_current_handle;
29 return OLE_OK;
32 /******************************************************************************
33 * OleRegisterClientDoc [OLECLI32.41]
35 OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
36 LONG reserved, LHCLIENTDOC *hRet )
38 FIXME("(%s,%s,...): stub\n",classname,docname);
39 *hRet=++OLE_current_handle;
40 return OLE_OK;
43 /******************************************************************************
44 * OleRenameClientDoc16 [OLECLI.43]
46 OLESTATUS WINAPI OleRenameClientDoc16(LHCLIENTDOC hDoc, LPCSTR newName)
48 FIXME("(%ld,%s,...): stub\n",hDoc, newName);
49 return OLE_OK;
52 /******************************************************************************
53 * OleRenameClientDoc [OLECLI32.43]
55 OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
57 FIXME("(%ld,%s,...): stub\n",hDoc, newName);
58 return OLE_OK;
61 /******************************************************************************
62 * OleRevokeClientDoc16 [OLECLI.42]
64 OLESTATUS WINAPI OleRevokeClientDoc16(LHCLIENTDOC hServerDoc)
66 FIXME("(%ld): stub\n",hServerDoc);
67 return OLE_OK;
70 /******************************************************************************
71 * OleRevokeClientDoc [OLECLI32.42]
73 OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
75 FIXME("(%ld): stub\n",hServerDoc);
76 return OLE_OK;
79 /******************************************************************************
80 * OleRevertClientDoc16 [OLECLI.44]
82 OLESTATUS WINAPI OleRevertClientDoc16(LHCLIENTDOC hServerDoc)
84 FIXME("(%ld): stub\n", hServerDoc);
85 return OLE_OK;
88 /******************************************************************************
89 * OleEnumObjects16 [OLECLI.47]
91 OLESTATUS WINAPI OleEnumObjects16(LHCLIENTDOC hServerDoc, SEGPTR data)
93 FIXME("(%ld, %04x:%04x): stub\n", hServerDoc, HIWORD(data),
94 LOWORD(data));
95 return OLE_OK;
98 /******************************************************************************
99 * OleCreateLinkFromClip16 [OLECLI.11]
101 OLESTATUS WINAPI OleCreateLinkFromClip16(
102 LPCSTR name, LPOLECLIENT olecli, LHCLIENTDOC hclientdoc, LPCSTR xname,
103 LPOLEOBJECT *lpoleob, UINT16 render, UINT16 clipformat
105 FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
106 (char *)PTR_SEG_TO_LIN(name), HIWORD(olecli), LOWORD(olecli),
107 hclientdoc, (char *)PTR_SEG_TO_LIN(xname), HIWORD(lpoleob),
108 LOWORD(lpoleob), render, clipformat);
109 return OLE_OK;
112 /******************************************************************************
113 * OleCreateLinkFromClip [OLECLI32.11]
115 OLESTATUS WINAPI OleCreateLinkFromClip(
116 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
117 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
119 FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
120 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
121 return OLE_OK;
124 /******************************************************************************
125 * OleQueryLinkFromClip16 [OLECLI.9]
127 OLESTATUS WINAPI OleQueryLinkFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat) {
128 FIXME("(%s, %d, %d): stub!\n", (char*)(PTR_SEG_TO_LIN(name)),
129 render, clipformat);
130 return OLE_OK;
133 /******************************************************************************
134 * OleQueryLinkFromClip [OLECLI32.9]
136 OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
137 FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
138 return OLE_OK;
141 /******************************************************************************
142 * OleQueryCreateFromClip16 [OLECLI.10]
144 OLESTATUS WINAPI OleQueryCreateFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat) {
145 FIXME("(%s, %d, %d): stub!\n", (char*)(PTR_SEG_TO_LIN(name)),
146 render, clipformat);
147 return OLE_OK;
150 /******************************************************************************
151 * OleQueryCreateFromClip [OLECLI32.10]
153 OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
154 FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
155 return OLE_OK;
158 /******************************************************************************
159 * OleIsDcMeta [OLECLI32.60]
161 BOOL WINAPI OleIsDcMeta(HDC hdc)
163 TRACE("(%04x)\n",hdc);
164 return GetObjectType( hdc ) == OBJ_METADC;
168 /******************************************************************************
169 * OleIsDcMeta16 [OLECLI.60]
171 BOOL16 WINAPI OleIsDcMeta16(HDC16 hdc)
173 return OleIsDcMeta( hdc );
177 /******************************************************************************
178 * OleSetHostNames [OLECLI32.15]
180 OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
181 FIXME("(%p,%s,%s): stub\n",oleob,name1,name2);
182 return OLE_OK;
185 /******************************************************************************
186 * OleQueryType16 [OLECLI.14]
188 OLESTATUS WINAPI OleQueryType16(LPOLEOBJECT oleob, SEGPTR xlong) {
189 FIXME("(%p, %p): stub!\n",
190 PTR_SEG_TO_LIN(oleob), PTR_SEG_TO_LIN(xlong));
191 return OLE_OK;
194 /******************************************************************************
195 * OleQueryType [OLECLI32.14]
197 OLESTATUS WINAPI OleQueryType(LPOLEOBJECT oleob,LONG*xlong) {
198 FIXME("(%p,%p): stub!\n",oleob,xlong);
199 if (!oleob)
200 return 0x10;
201 TRACE("Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
202 oleob->lpvtbl->QueryType,oleob,xlong);
203 return oleob->lpvtbl->QueryType(oleob,xlong);
206 /******************************************************************************
207 * OleCreateFromClip16 [OLECLI.12]
209 OLESTATUS WINAPI OleCreateFromClip16(
210 LPCSTR name, LPOLECLIENT olecli, LHCLIENTDOC hclientdoc, LPCSTR xname,
211 LPOLEOBJECT *lpoleob, UINT16 render, UINT16 clipformat
213 FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
214 (char *)PTR_SEG_TO_LIN(name), HIWORD(olecli), LOWORD(olecli),
215 hclientdoc, (char *)PTR_SEG_TO_LIN(xname), HIWORD(lpoleob),
216 LOWORD(lpoleob), render, clipformat);
217 return OLE_OK;
220 /******************************************************************************
221 * OleCreateFromClip [OLECLI32.12]
223 OLESTATUS WINAPI OleCreateFromClip(
224 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
225 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
227 FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
228 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
229 /* clipb type, object kreieren entsprechend etc. */
230 return OLE_OK;