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.
27 #include "wine/windef16.h"
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(ole
);
38 OLE_ERROR_PROTECT_ONLY
,
76 OLE_ERROR_ADVISE_NATIVE
,
77 OLE_ERROR_ADVISE_PICT
,
78 OLE_ERROR_ADVISE_RENAME
,
79 OLE_ERROR_POKE_NATIVE
,
80 OLE_ERROR_REQUEST_NATIVE
,
81 OLE_ERROR_REQUEST_PICT
,
82 OLE_ERROR_SERVER_BLOCKED
,
83 OLE_ERROR_REGISTRATION
,
84 OLE_ERROR_ALREADY_REGISTERED
,
87 OLE_ERROR_CANT_UPDATE_CLIENT
,
89 OLE_ERROR_SETDATA_FORMAT
,
90 OLE_ERROR_STATIC_FROM_OTHER_OS
,
91 OLE_WARN_DELETE_DATA
= 1000
99 typedef LONG LHSERVER
;
100 typedef LONG LHSERVERDOC
;
102 typedef struct _OLESERVERDOC
*LPOLESERVERDOC
;
104 struct _OLESERVERDOCVTBL
;
105 typedef struct _OLESERVERDOC
107 struct _OLESERVERDOCVTBL
*lpvtbl
;
108 /* server provided state info */
111 typedef struct _OLESERVER
*LPOLESERVER
;
112 typedef struct _OLESERVERVTBL
114 OLESTATUS (CALLBACK
*Open
)(LPOLESERVER
,LHSERVERDOC
,LPCOLESTR16
,LPOLESERVERDOC
*);
115 OLESTATUS (CALLBACK
*Create
)(LPOLESERVER
,LHSERVERDOC
,LPCOLESTR16
,LPCOLESTR16
,LPOLESERVERDOC
*);
116 OLESTATUS (CALLBACK
*CreateFromTemplate
)(LPOLESERVER
,LHSERVERDOC
,LPCOLESTR16
,LPCOLESTR16
,LPCOLESTR16
,LPOLESERVERDOC
*);
117 OLESTATUS (CALLBACK
*Edit
)(LPOLESERVER
,LHSERVERDOC
,LPCOLESTR16
,LPCOLESTR16
,LPOLESERVERDOC
*);
118 OLESTATUS (CALLBACK
*Exit
)(LPOLESERVER
);
119 OLESTATUS (CALLBACK
*Release
)(LPOLESERVER
);
120 OLESTATUS (CALLBACK
*Execute
)(LPOLESERVER
);
121 } OLESERVERVTBL
, *LPOLESERVERVTBL
;
123 typedef struct _OLESERVER
125 LPOLESERVERVTBL lpvtbl
;
126 /* server specific data */
129 static LONG OLE_current_handle
;
131 /******************************************************************************
132 * OleRegisterServer [OLESVR.2]
134 OLESTATUS WINAPI
OleRegisterServer16( LPCSTR name
, LPOLESERVER serverStruct
,
135 LHSERVER
*hRet
, HINSTANCE16 hServer
,
138 FIXME("(%s,...): stub\n",name
);
139 *hRet
=++OLE_current_handle
;
140 /* return OLE_ERROR_MEMORY, OLE_ERROR_PROTECT_ONLY if you want it fail*/
144 /******************************************************************************
145 * OleBlockServer [OLESVR.4]
147 OLESTATUS WINAPI
OleBlockServer16(LHSERVER hServer
)
149 FIXME("(%ld): stub\n",hServer
);
153 /******************************************************************************
154 * OleBlockServer [OLESVR32.4]
156 OLESTATUS WINAPI
OleBlockServer(LHSERVER hServer
)
158 FIXME("(%ld): stub\n",hServer
);
162 /******************************************************************************
163 * OleUnblockServer [OLESVR.5]
165 OLESTATUS WINAPI
OleUnblockServer16(LHSERVER hServer
, BOOL16
*block
)
167 FIXME("(%ld): stub\n",hServer
);
168 /* no more blocked messages :) */
173 /******************************************************************************
174 * OleUnblockServer [OLESVR32.5]
176 OLESTATUS WINAPI
OleUnblockServer(LHSERVER hServer
, BOOL
*block
)
178 FIXME("(%ld): stub\n",hServer
);
179 /* no more blocked messages :) */
184 /***********************************************************************
185 * OleRegisterServerDoc [OLESVR.6]
187 OLESTATUS WINAPI
OleRegisterServerDoc16( LHSERVER hServer
, LPCSTR docname
,
188 LPOLESERVERDOC document
,
191 FIXME("(%ld,%s): stub\n",hServer
, docname
);
192 *hRet
=++OLE_current_handle
;
196 /******************************************************************************
197 * OleRevokeServerDoc [OLESVR.7]
199 OLESTATUS WINAPI
OleRevokeServerDoc16(LHSERVERDOC hServerDoc
)
201 FIXME("%ld - stub\n",hServerDoc
);
205 /******************************************************************************
206 * OleRevokeServerDoc [OLESVR32.7]
208 OLESTATUS WINAPI
OleRevokeServerDoc(LHSERVERDOC hServerDoc
)
210 FIXME("(%ld): stub\n",hServerDoc
);
214 /******************************************************************************
215 * OleRevokeServer [OLESVR.3]
217 OLESTATUS WINAPI
OleRevokeServer16(LHSERVER hServer
)
219 FIXME("%ld - stub\n",hServer
);
223 /******************************************************************************
224 * OleRegisterServer [OLESVR32.2]
226 OLESTATUS WINAPI
OleRegisterServer(LPCSTR svrname
,LPOLESERVER olesvr
,LHSERVER
* hRet
,HINSTANCE hinst
,OLE_SERVER_USE osu
) {
227 FIXME("(%s,%p,%p,%p,%d): stub!\n",svrname
,olesvr
,hRet
,hinst
,osu
);
228 *hRet
=++OLE_current_handle
;
232 /******************************************************************************
233 * OleRegisterServerDoc [OLESVR32.6]
235 OLESTATUS WINAPI
OleRegisterServerDoc( LHSERVER hServer
, LPCSTR docname
,
236 LPOLESERVERDOC document
,
239 FIXME("(%ld,%s): stub\n", hServer
, docname
);
240 *hRet
=++OLE_current_handle
;
244 /******************************************************************************
245 * OleRenameServerDoc [OLESVR32.8]
248 OLESTATUS WINAPI
OleRenameServerDoc(LHSERVERDOC hDoc
, LPCSTR newName
)
250 FIXME("(%ld,%s): stub.\n",hDoc
, newName
);