ReactOS 0.4.16-dev-237-gd6eebaa
olesvr_main.c
Go to the documentation of this file.
1/*
2 * OLESVR library
3 *
4 * Copyright 1995 Martin von Loewis
5 *
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.
10 *
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.
15 *
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
19 */
20
21/* At the moment, these are only empty stubs.
22 */
23
24#include <stdarg.h>
25
26#include "windef.h"
27#include "winbase.h"
28#include "objbase.h"
29#include "wine/debug.h"
30
32
33typedef enum
34{
93
94typedef enum {
98
99typedef LONG LHSERVER;
102
104
105struct _OLESERVERDOCVTBL;
106typedef struct _OLESERVERDOC
107{
109 /* server provided state info */
111
112typedef struct _OLESERVER *LPOLESERVER;
113typedef struct _OLESERVERVTBL
114{
123
124typedef struct _OLESERVER
125{
127 /* server specific data */
129
131
132/******************************************************************************
133 * OleBlockServer [OLESVR32.4]
134 */
136{
137 FIXME("(%d): stub\n",hServer);
138 return OLE_OK;
139}
140
141/******************************************************************************
142 * OleUnblockServer [OLESVR32.5]
143 */
145{
146 FIXME("(%d): stub\n",hServer);
147 /* no more blocked messages :) */
148 *block=FALSE;
149 return OLE_OK;
150}
151
152/******************************************************************************
153 * OleRevokeServerDoc [OLESVR32.7]
154 */
156{
157 FIXME("(%d): stub\n",hServerDoc);
158 return OLE_OK;
159}
160
161/******************************************************************************
162 * OleRegisterServer [OLESVR32.2]
163 */
165 FIXME("(%s,%p,%p,%p,%d): stub!\n",svrname,olesvr,hRet,hinst,osu);
166 *hRet=++OLE_current_handle;
167 return OLE_OK;
168}
169
170/******************************************************************************
171 * OleRegisterServerDoc [OLESVR32.6]
172 */
174 LPOLESERVERDOC document,
175 LHSERVERDOC *hRet)
176{
177 FIXME("(%d,%s): stub\n", hServer, docname);
178 *hRet=++OLE_current_handle;
179 return OLE_OK;
180}
181
182/******************************************************************************
183 * OleRenameServerDoc [OLESVR32.8]
184 *
185 */
187{
188 FIXME("(%d,%s): stub.\n",hDoc, newName);
189 return OLE_OK;
190}
191
192/******************************************************************************
193 * OleRevertServerDoc [OLESVR32.9]
194 *
195 */
197{
198 FIXME("(%d): stub.\n", hDoc);
199 return OLE_OK;
200}
201
202/******************************************************************************
203 * OleSavedServerDoc [OLESVR32.10]
204 *
205 */
207{
208 FIXME("(%d): stub.\n", hDoc);
209 return OLE_OK;
210}
211
212/******************************************************************************
213 * OleRevokeServer [OLESVR32.3]
214 *
215 */
217{
218 FIXME("(%d): stub.\n", hServer);
219 return OLE_OK;
220}
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
@ Create
Definition: registry.c:563
static INT Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
Definition: cmd.c:347
#define FIXME(fmt,...)
Definition: precomp.h:53
_In_ BOOLEAN Release
Definition: cdrom.h:920
#define FALSE
Definition: types.h:117
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
#define Open
Definition: syshdrs.h:62
static HINSTANCE hinst
Definition: edit.c:551
struct _OLESERVER * LPOLESERVER
Definition: ole.h:211
OLESTATUS
Definition: ole.h:35
OLESTATUS
Definition: olecli.h:22
LPCSTR LPCOLESTR16
Definition: olesvr_main.c:101
LONG LHSERVERDOC
Definition: olesvr_main.c:100
struct _OLESERVERVTBL * LPOLESERVERVTBL
OLESTATUS WINAPI OleSavedServerDoc(LHSERVERDOC hDoc)
Definition: olesvr_main.c:206
struct _OLESERVERDOC OLESERVERDOC
LONG LHSERVER
Definition: olesvr_main.c:99
OLE_SERVER_USE
Definition: olesvr_main.c:94
@ OLE_SERVER_MULTI
Definition: olesvr_main.c:95
@ OLE_SERVER_SINGLE
Definition: olesvr_main.c:96
struct _OLESERVERVTBL OLESERVERVTBL
OLESTATUS WINAPI OleRegisterServerDoc(LHSERVER hServer, LPCSTR docname, LPOLESERVERDOC document, LHSERVERDOC *hRet)
Definition: olesvr_main.c:173
OLESTATUS WINAPI OleRevokeServer(LHSERVER hServer)
Definition: olesvr_main.c:216
OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC hServerDoc)
Definition: olesvr_main.c:155
struct _OLESERVER * LPOLESERVER
Definition: olesvr_main.c:112
OLESTATUS WINAPI OleRevertServerDoc(LHSERVERDOC hDoc)
Definition: olesvr_main.c:196
OLESTATUS WINAPI OleRegisterServer(LPCSTR svrname, LPOLESERVER olesvr, LHSERVER *hRet, HINSTANCE hinst, OLE_SERVER_USE osu)
Definition: olesvr_main.c:164
struct _OLESERVERDOC * LPOLESERVERDOC
Definition: olesvr_main.c:103
struct _OLESERVER OLESERVER
OLESTATUS WINAPI OleRenameServerDoc(LHSERVERDOC hDoc, LPCSTR newName)
Definition: olesvr_main.c:186
OLESTATUS
Definition: olesvr_main.c:34
@ OLE_ERROR_CLIPBOARD
Definition: olesvr_main.c:46
@ OLE_ERROR_UPDATE
Definition: olesvr_main.c:88
@ OLE_ERROR_ADVISE_RENAME
Definition: olesvr_main.c:78
@ OLE_ERROR_OPTION
Definition: olesvr_main.c:49
@ OLE_ERROR_POKE_NATIVE
Definition: olesvr_main.c:79
@ OLE_ERROR_NOT_OPEN
Definition: olesvr_main.c:69
@ OLE_ERROR_SETDATA_FORMAT
Definition: olesvr_main.c:89
@ OLE_ERROR_PROTECT_ONLY
Definition: olesvr_main.c:38
@ OLE_ERROR_PALETTE
Definition: olesvr_main.c:58
@ OLE_ERROR_METAFILE
Definition: olesvr_main.c:44
@ OLE_ERROR_SIZE
Definition: olesvr_main.c:61
@ OLE_ERROR_ADVISE_PICT
Definition: olesvr_main.c:77
@ OLE_ERROR_EDIT
Definition: olesvr_main.c:67
@ OLE_ERROR_NAME
Definition: olesvr_main.c:64
@ OLE_WAIT_FOR_RELEASE
Definition: olesvr_main.c:36
@ OLE_ERROR_TERMINATE
Definition: olesvr_main.c:72
@ OLE_ERROR_ADDRESS
Definition: olesvr_main.c:51
@ OLE_ERROR_STREAM
Definition: olesvr_main.c:40
@ OLE_ERROR_CANT_UPDATE_CLIENT
Definition: olesvr_main.c:87
@ OLE_ERROR_NOT_EMPTY
Definition: olesvr_main.c:60
@ OLE_ERROR_LAUNCH
Definition: olesvr_main.c:70
@ OLE_ERROR_NETWORK
Definition: olesvr_main.c:63
@ OLE_ERROR_NOT_EQUAL
Definition: olesvr_main.c:52
@ OLE_ERROR_STATIC
Definition: olesvr_main.c:41
@ OLE_ERROR_REQUEST_NATIVE
Definition: olesvr_main.c:80
@ OLE_ERROR_DRIVE
Definition: olesvr_main.c:62
@ OLE_ERROR_TEMPLATE
Definition: olesvr_main.c:65
@ OLE_ERROR_MEMORY
Definition: olesvr_main.c:39
@ OLE_ERROR_SERVER_BLOCKED
Definition: olesvr_main.c:82
@ OLE_ERROR_REGISTRATION
Definition: olesvr_main.c:83
@ OLE_ERROR_SHOW
Definition: olesvr_main.c:74
@ OLE_ERROR_CLASS
Definition: olesvr_main.c:55
@ OLE_ERROR_SYNTAX
Definition: olesvr_main.c:56
@ OLE_ERROR_OPEN
Definition: olesvr_main.c:68
@ OLE_ERROR_COMM
Definition: olesvr_main.c:71
@ OLE_ERROR_FORMAT
Definition: olesvr_main.c:47
@ OLE_ERROR_ALREADY_REGISTERED
Definition: olesvr_main.c:84
@ OLE_ERROR_DRAW
Definition: olesvr_main.c:43
@ OLE_OK
Definition: olesvr_main.c:35
@ OLE_ERROR_TASK
Definition: olesvr_main.c:85
@ OLE_ERROR_NOT_LINK
Definition: olesvr_main.c:59
@ OLE_ERROR_OUTOFDATE
Definition: olesvr_main.c:86
@ OLE_ERROR_ABORT
Definition: olesvr_main.c:45
@ OLE_ERROR_DATATYPE
Definition: olesvr_main.c:57
@ OLE_BUSY
Definition: olesvr_main.c:37
@ OLE_ERROR_REQUEST_PICT
Definition: olesvr_main.c:81
@ OLE_WARN_DELETE_DATA
Definition: olesvr_main.c:91
@ OLE_ERROR_STATIC_FROM_OTHER_OS
Definition: olesvr_main.c:90
@ OLE_ERROR_COMMAND
Definition: olesvr_main.c:73
@ OLE_ERROR_DOVERB
Definition: olesvr_main.c:75
@ OLE_ERROR_HANDLE
Definition: olesvr_main.c:53
@ OLE_ERROR_ADVISE_NATIVE
Definition: olesvr_main.c:76
@ OLE_ERROR_GENERIC
Definition: olesvr_main.c:54
@ OLE_ERROR_BLANK
Definition: olesvr_main.c:42
@ OLE_ERROR_PROTOCOL
Definition: olesvr_main.c:50
@ OLE_ERROR_NEW
Definition: olesvr_main.c:66
@ OLE_ERROR_OBJECT
Definition: olesvr_main.c:48
OLESTATUS WINAPI OleBlockServer(LHSERVER hServer)
Definition: olesvr_main.c:135
OLESTATUS WINAPI OleUnblockServer(LHSERVER hServer, BOOL *block)
Definition: olesvr_main.c:144
static LONG OLE_current_handle
Definition: olesvr_main.c:130
long LONG
Definition: pedump.c:60
static void Exit(void)
Definition: sock.c:1330
const struct _OLESERVERDOCVTBL * lpvtbl
Definition: olesvr_main.c:108
OLESTATUS(CALLBACK *Release)(LPOLESERVER)
OLESTATUS(CALLBACK *Execute)(LPOLESERVER)
LPOLESERVERDOC LHSERVERDOC
Definition: olesvr_main.c:116
LPOLESERVERDOC LPOLESERVERDOC LHSERVERDOC
Definition: olesvr_main.c:117
LPOLESERVERDOC LPOLESERVERDOC LPOLESERVERDOC LPOLESERVERDOC * OLESTATUS(CALLBACK *Exit)(LPOLESERVER)
const OLESERVERVTBL * lpvtbl
Definition: olesvr_main.c:126
#define WINAPI
Definition: msvc.h:6
static unsigned int block
Definition: xmlmemory.c:101
const char * LPCSTR
Definition: xmlstorage.h:183