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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 /* At the moment, these are only empty stubs.
30 #include "wine/windef16.h"
32 #include "wine/debug.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(ole);
41 OLE_ERROR_PROTECT_ONLY,
79 OLE_ERROR_ADVISE_NATIVE,
80 OLE_ERROR_ADVISE_PICT,
81 OLE_ERROR_ADVISE_RENAME,
82 OLE_ERROR_POKE_NATIVE,
83 OLE_ERROR_REQUEST_NATIVE,
84 OLE_ERROR_REQUEST_PICT,
85 OLE_ERROR_SERVER_BLOCKED,
86 OLE_ERROR_REGISTRATION,
87 OLE_ERROR_ALREADY_REGISTERED,
90 OLE_ERROR_CANT_UPDATE_CLIENT,
92 OLE_ERROR_SETDATA_FORMAT,
93 OLE_ERROR_STATIC_FROM_OTHER_OS,
94 OLE_WARN_DELETE_DATA = 1000
102 typedef LONG LHSERVER;
103 typedef LONG LHSERVERDOC;
104 typedef LPCSTR LPCOLESTR16;
106 typedef struct _OLESERVERDOC *LPOLESERVERDOC;
108 struct _OLESERVERDOCVTBL;
109 typedef struct _OLESERVERDOC
111 const struct _OLESERVERDOCVTBL *lpvtbl;
112 /* server provided state info */
115 typedef struct _OLESERVER *LPOLESERVER;
116 typedef struct _OLESERVERVTBL
118 OLESTATUS (CALLBACK *Open)(LPOLESERVER,LHSERVERDOC,LPCOLESTR16,LPOLESERVERDOC *);
119 OLESTATUS (CALLBACK *Create)(LPOLESERVER,LHSERVERDOC,LPCOLESTR16,LPCOLESTR16,LPOLESERVERDOC*);
120 OLESTATUS (CALLBACK *CreateFromTemplate)(LPOLESERVER,LHSERVERDOC,LPCOLESTR16,LPCOLESTR16,LPCOLESTR16,LPOLESERVERDOC *);
121 OLESTATUS (CALLBACK *Edit)(LPOLESERVER,LHSERVERDOC,LPCOLESTR16,LPCOLESTR16,LPOLESERVERDOC *);
122 OLESTATUS (CALLBACK *Exit)(LPOLESERVER);
123 OLESTATUS (CALLBACK *Release)(LPOLESERVER);
124 OLESTATUS (CALLBACK *Execute)(LPOLESERVER);
125 } OLESERVERVTBL, *LPOLESERVERVTBL;
127 typedef struct _OLESERVER
129 const OLESERVERVTBL *lpvtbl;
130 /* server specific data */
133 static LONG OLE_current_handle;
135 /******************************************************************************
136 * OleRegisterServer [OLESVR.2]
138 OLESTATUS WINAPI OleRegisterServer16( LPCSTR name, LPOLESERVER serverStruct,
139 LHSERVER *hRet, HINSTANCE16 hServer,
142 FIXME("(%s,...): stub\n",name);
143 *hRet=++OLE_current_handle;
144 /* return OLE_ERROR_MEMORY, OLE_ERROR_PROTECT_ONLY if you want it fail*/
148 /******************************************************************************
149 * OleRevokeServer [OLESVR.3]
151 OLESTATUS WINAPI OleRevokeServer16(LHSERVER hServer)
153 FIXME("%d - stub\n",hServer);
157 /******************************************************************************
158 * OleBlockServer [OLESVR.4]
160 OLESTATUS WINAPI OleBlockServer16(LHSERVER hServer)
162 FIXME("(%d): stub\n",hServer);
166 /******************************************************************************
167 * OleUnblockServer [OLESVR.5]
169 OLESTATUS WINAPI OleUnblockServer16(LHSERVER hServer, BOOL16 *block)
171 FIXME("(%d): stub\n",hServer);
172 /* no more blocked messages :) */
177 /***********************************************************************
178 * OleRegisterServerDoc [OLESVR.6]
180 OLESTATUS WINAPI OleRegisterServerDoc16( LHSERVER hServer, LPCSTR docname,
181 LPOLESERVERDOC document,
184 FIXME("(%d,%s): stub\n",hServer, docname);
185 *hRet=++OLE_current_handle;
189 /******************************************************************************
190 * OleRevokeServerDoc [OLESVR.7]
192 OLESTATUS WINAPI OleRevokeServerDoc16(LHSERVERDOC hServerDoc)
194 FIXME("%d - stub\n",hServerDoc);
198 /******************************************************************************
199 * OleRenameServerDoc [OLESVR.8]
202 OLESTATUS WINAPI OleRenameServerDoc16(LHSERVERDOC hDoc, LPCSTR newName)
204 FIXME("(%d,%s): stub.\n", hDoc, newName);
208 /******************************************************************************
209 * OleRevertServerDoc [OLESVR.9]
212 OLESTATUS WINAPI OleRevertServerDoc16(LHSERVERDOC hDoc)
214 FIXME("(%d): stub.\n", hDoc);
218 /******************************************************************************
219 * OleSavedServerDoc [OLESVR.10]
222 OLESTATUS WINAPI OleSavedServerDoc16(LHSERVERDOC hDoc)
224 FIXME("(%d): stub.\n", hDoc);