Implemented SendMessageTimeout() functions.
[wine/multimedia.git] / ole / olecli.c
blob2c0effeea195be7eed5fb483faffb806aebe2d81
1 /*
2 * OLECLI library
4 * Copyright 1995 Martin von Loewis
5 */
7 /* At the moment, these are only empty stubs.
8 */
10 #include "winerror.h"
11 #include "ole.h"
12 #include "gdi.h"
13 #include "wine/obj_dataobject.h"
14 #include "debug.h"
17 extern LONG OLE_current_handle;
19 /******************************************************************************
20 * OleRegisterClientDoc16 [OLECLI.41]
22 OLESTATUS WINAPI OleRegisterClientDoc16(LPCSTR classname, LPCSTR docname,
23 LONG reserved, LHCLIENTDOC *hRet )
25 FIXME(ole,"(%s,%s,...): stub\n",classname,docname);
26 *hRet=++OLE_current_handle;
27 return OLE_OK;
30 /******************************************************************************
31 * OleRegisterClientDoc32 [OLECLI32.41]
33 OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
34 LONG reserved, LHCLIENTDOC *hRet )
36 FIXME(ole,"(%s,%s,...): stub\n",classname,docname);
37 *hRet=++OLE_current_handle;
38 return OLE_OK;
41 /******************************************************************************
42 * OleRenameClientDoc16 [OLECLI.43]
44 OLESTATUS WINAPI OleRenameClientDoc16(LHCLIENTDOC hDoc, LPCSTR newName)
46 FIXME(ole,"(%ld,%s,...): stub\n",hDoc, newName);
47 return OLE_OK;
50 /******************************************************************************
51 * OleRenameClientDoc32 [OLECLI32.43]
53 OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
55 FIXME(ole,"(%ld,%s,...): stub\n",hDoc, newName);
56 return OLE_OK;
59 /******************************************************************************
60 * OleRevokeClientDoc16 [OLECLI.42]
62 OLESTATUS WINAPI OleRevokeClientDoc16(LHCLIENTDOC hServerDoc)
64 FIXME(ole,"(%ld): stub\n",hServerDoc);
65 return OLE_OK;
68 /******************************************************************************
69 * OleRevokeClientDoc32 [OLECLI32.42]
71 OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
73 FIXME(ole,"(%ld): stub\n",hServerDoc);
74 return OLE_OK;
77 /******************************************************************************
78 * OleCreateLinkFromClip32 [OLECLI32.11]
80 OLESTATUS WINAPI OleCreateLinkFromClip(
81 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
82 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
83 ) {
84 FIXME(ole,"(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
85 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
86 return OLE_OK;
89 /******************************************************************************
90 * OleQueryLinkFromClip32 [OLECLI32.9]
92 OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
93 FIXME(ole,"(%s,%d,%ld): stub!\n",name,render,clipformat);
94 return OLE_OK;
96 /******************************************************************************
97 * OleQueryCreateFromClip32 [OLECLI32.10]
99 OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
100 FIXME(ole,"(%s,%d,%ld): stub!\n",name,render,clipformat);
101 return OLE_OK;
105 /******************************************************************************
106 * OleIsDcMeta16 [OLECLI.60]
108 BOOL16 WINAPI OleIsDcMeta16(HDC16 hdc)
110 TRACE(ole,"(%04x)\n",hdc);
111 if (GDI_GetObjPtr( hdc, METAFILE_DC_MAGIC ) != 0) {
112 GDI_HEAP_UNLOCK( hdc );
113 return TRUE;
115 return FALSE;
119 /******************************************************************************
120 * OleIsDcMeta32 [OLECLI32.60]
122 BOOL WINAPI OleIsDcMeta(HDC hdc)
124 TRACE(ole,"(%04x)\n",hdc);
125 if (GDI_GetObjPtr( hdc, METAFILE_DC_MAGIC ) != 0) {
126 GDI_HEAP_UNLOCK( hdc );
127 return TRUE;
129 return FALSE;
133 /******************************************************************************
134 * OleSetHostNames32 [OLECLI32.15]
136 OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
137 FIXME(ole,"(%p,%s,%s): stub\n",oleob,name1,name2);
138 return OLE_OK;
141 /******************************************************************************
142 * OleQueryType32 [OLECLI32.14]
144 OLESTATUS WINAPI OleQueryType(LPOLEOBJECT oleob,LONG*xlong) {
145 FIXME(ole,"(%p,%p): stub!\n",oleob,xlong);
146 if (!oleob)
147 return 0x10;
148 TRACE(ole,"Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
149 oleob->lpvtbl->QueryType,oleob,xlong);
150 return oleob->lpvtbl->QueryType(oleob,xlong);
153 /******************************************************************************
154 * OleCreateFromClip32 [OLECLI32.12]
156 OLESTATUS WINAPI OleCreateFromClip(
157 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
158 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
160 FIXME(ole,"(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
161 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
162 /* clipb type, object kreieren entsprechend etc. */
163 return OLE_OK;
166 /***********************************************************************
167 * OleIsCurrentClipboard32 [OLE32.110]
169 HRESULT WINAPI OleIsCurrentClipboard (
170 IDataObject *pDataObject) /* ptr to the data obj previously copied or cut */
172 FIXME(ole,"(DataObject %p): stub!\n", pDataObject);
173 return S_FALSE;