ReactOS  0.4.15-dev-1033-gd7d716a
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 
33 typedef enum
34 {
92 } OLESTATUS;
93 
94 typedef enum {
98 
99 typedef LONG LHSERVER;
102 
104 
105 struct _OLESERVERDOCVTBL;
106 typedef struct _OLESERVERDOC
107 {
108  const struct _OLESERVERDOCVTBL *lpvtbl;
109  /* server provided state info */
110 } OLESERVERDOC;
111 
112 typedef struct _OLESERVER *LPOLESERVER;
113 typedef struct _OLESERVERVTBL
114 {
123 
124 typedef struct _OLESERVER
125 {
127  /* server specific data */
128 } OLESERVER;
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 }
static unsigned int block
Definition: xmlmemory.c:118
struct _OLESERVERVTBL * LPOLESERVERVTBL
const struct _OLESERVERDOCVTBL * lpvtbl
Definition: olesvr_main.c:108
OLESTATUS WINAPI OleRevokeServer(LHSERVER hServer)
Definition: olesvr_main.c:216
_In_ BOOLEAN Release
Definition: classpnp.h:1122
OLESTATUS WINAPI OleRegisterServer(LPCSTR svrname, LPOLESERVER olesvr, LHSERVER *hRet, HINSTANCE hinst, OLE_SERVER_USE osu)
Definition: olesvr_main.c:164
VOID Execute(LPTSTR Path)
Definition: stats.c:407
struct _OLESERVER * LPOLESERVER
Definition: olesvr_main.c:112
_In_ BOOLEAN Create
Definition: pstypes.h:519
#define CALLBACK
Definition: compat.h:35
OLESTATUS WINAPI OleRevertServerDoc(LHSERVERDOC hDoc)
Definition: olesvr_main.c:196
struct _OLESERVERDOC * LPOLESERVERDOC
Definition: olesvr_main.c:103
OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC hServerDoc)
Definition: olesvr_main.c:155
OLESTATUS
Definition: olecli.h:21
#define Open
Definition: syshdrs.h:62
OLESTATUS WINAPI OleBlockServer(LHSERVER hServer)
Definition: olesvr_main.c:135
#define FALSE
Definition: types.h:117
OLESTATUS WINAPI OleUnblockServer(LHSERVER hServer, BOOL *block)
Definition: olesvr_main.c:144
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
#define FIXME(fmt,...)
Definition: debug.h:111
LPCSTR LPCOLESTR16
Definition: olesvr_main.c:101
static LONG OLE_current_handle
Definition: olesvr_main.c:130
WINE_DEFAULT_DEBUG_CHANNEL(ole)
const char * LPCSTR
Definition: xmlstorage.h:183
struct _OLESERVERVTBL OLESERVERVTBL
OLESTATUS WINAPI OleRegisterServerDoc(LHSERVER hServer, LPCSTR docname, LPOLESERVERDOC document, LHSERVERDOC *hRet)
Definition: olesvr_main.c:173
static void Exit(void)
Definition: sock.c:1331
OLESTATUS(CALLBACK *Open)(LPOLESERVER
#define WINAPI
Definition: msvc.h:6
LONG LHSERVERDOC
Definition: olesvr_main.c:100
LPOLESERVERDOC LPOLESERVERDOC LPCOLESTR16
Definition: olesvr_main.c:117
struct _OLESERVER OLESERVER
OLESTATUS WINAPI OleRenameServerDoc(LHSERVERDOC hDoc, LPCSTR newName)
Definition: olesvr_main.c:186
const OLESERVERVTBL * lpvtbl
Definition: olesvr_main.c:126
OLESTATUS WINAPI OleSavedServerDoc(LHSERVERDOC hDoc)
Definition: olesvr_main.c:206
struct _OLESERVERDOC OLESERVERDOC
static HINSTANCE hinst
Definition: edit.c:551
OLESTATUS
Definition: olesvr_main.c:33
OLE_SERVER_USE
Definition: olesvr_main.c:94
LPOLESERVERDOC LPCOLESTR16
Definition: olesvr_main.c:116
LONG LHSERVER
Definition: olesvr_main.c:99