ReactOS  0.4.13-dev-249-gcba1a2f
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 "config.h"
25 
26 #include <stdarg.h>
27 
28 #include "windef.h"
29 #include "winbase.h"
30 #include "objbase.h"
31 #include "wine/debug.h"
32 
34 
35 typedef enum
36 {
94 } OLESTATUS;
95 
96 typedef enum {
100 
101 typedef LONG LHSERVER;
104 
106 
107 struct _OLESERVERDOCVTBL;
108 typedef struct _OLESERVERDOC
109 {
110  const struct _OLESERVERDOCVTBL *lpvtbl;
111  /* server provided state info */
112 } OLESERVERDOC;
113 
114 typedef struct _OLESERVER *LPOLESERVER;
115 typedef struct _OLESERVERVTBL
116 {
125 
126 typedef struct _OLESERVER
127 {
129  /* server specific data */
130 } OLESERVER;
131 
133 
134 /******************************************************************************
135  * OleBlockServer [OLESVR32.4]
136  */
138 {
139  FIXME("(%d): stub\n",hServer);
140  return OLE_OK;
141 }
142 
143 /******************************************************************************
144  * OleUnblockServer [OLESVR32.5]
145  */
147 {
148  FIXME("(%d): stub\n",hServer);
149  /* no more blocked messages :) */
150  *block=FALSE;
151  return OLE_OK;
152 }
153 
154 /******************************************************************************
155  * OleRevokeServerDoc [OLESVR32.7]
156  */
158 {
159  FIXME("(%d): stub\n",hServerDoc);
160  return OLE_OK;
161 }
162 
163 /******************************************************************************
164  * OleRegisterServer [OLESVR32.2]
165  */
167  FIXME("(%s,%p,%p,%p,%d): stub!\n",svrname,olesvr,hRet,hinst,osu);
168  *hRet=++OLE_current_handle;
169  return OLE_OK;
170 }
171 
172 /******************************************************************************
173  * OleRegisterServerDoc [OLESVR32.6]
174  */
176  LPOLESERVERDOC document,
177  LHSERVERDOC *hRet)
178 {
179  FIXME("(%d,%s): stub\n", hServer, docname);
180  *hRet=++OLE_current_handle;
181  return OLE_OK;
182 }
183 
184 /******************************************************************************
185  * OleRenameServerDoc [OLESVR32.8]
186  *
187  */
189 {
190  FIXME("(%d,%s): stub.\n",hDoc, newName);
191  return OLE_OK;
192 }
193 
194 /******************************************************************************
195  * OleRevertServerDoc [OLESVR32.9]
196  *
197  */
199 {
200  FIXME("(%d): stub.\n", hDoc);
201  return OLE_OK;
202 }
203 
204 /******************************************************************************
205  * OleSavedServerDoc [OLESVR32.10]
206  *
207  */
209 {
210  FIXME("(%d): stub.\n", hDoc);
211  return OLE_OK;
212 }
213 
214 /******************************************************************************
215  * OleRevokeServer [OLESVR32.3]
216  *
217  */
219 {
220  FIXME("(%d): stub.\n", hServer);
221  return OLE_OK;
222 }
static unsigned int block
Definition: xmlmemory.c:118
struct _OLESERVERVTBL * LPOLESERVERVTBL
const struct _OLESERVERDOCVTBL * lpvtbl
Definition: olesvr_main.c:110
OLESTATUS WINAPI OleRevokeServer(LHSERVER hServer)
Definition: olesvr_main.c:218
_In_ BOOLEAN Release
Definition: classpnp.h:929
OLESTATUS WINAPI OleRegisterServer(LPCSTR svrname, LPOLESERVER olesvr, LHSERVER *hRet, HINSTANCE hinst, OLE_SERVER_USE osu)
Definition: olesvr_main.c:166
VOID Execute(LPTSTR Path)
Definition: stats.c:407
struct _OLESERVER * LPOLESERVER
Definition: olesvr_main.c:114
_In_ BOOLEAN Create
Definition: pstypes.h:511
#define CALLBACK
Definition: compat.h:27
OLESTATUS WINAPI OleRevertServerDoc(LHSERVERDOC hDoc)
Definition: olesvr_main.c:198
struct _OLESERVERDOC * LPOLESERVERDOC
Definition: olesvr_main.c:105
OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC hServerDoc)
Definition: olesvr_main.c:157
OLESTATUS
Definition: olecli.h:21
#define Open
Definition: syshdrs.h:62
OLESTATUS WINAPI OleBlockServer(LHSERVER hServer)
Definition: olesvr_main.c:137
OLESTATUS WINAPI OleUnblockServer(LHSERVER hServer, BOOL *block)
Definition: olesvr_main.c:146
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
#define FIXME(fmt,...)
Definition: debug.h:110
LPCSTR LPCOLESTR16
Definition: olesvr_main.c:103
static LONG OLE_current_handle
Definition: olesvr_main.c:132
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:175
static void Exit(void)
Definition: sock.c:1331
OLESTATUS(CALLBACK *Open)(LPOLESERVER
#define WINAPI
Definition: msvc.h:8
LONG LHSERVERDOC
Definition: olesvr_main.c:102
LPOLESERVERDOC LPOLESERVERDOC LPCOLESTR16
Definition: olesvr_main.c:119
struct _OLESERVER OLESERVER
OLESTATUS WINAPI OleRenameServerDoc(LHSERVERDOC hDoc, LPCSTR newName)
Definition: olesvr_main.c:188
const OLESERVERVTBL * lpvtbl
Definition: olesvr_main.c:128
OLESTATUS WINAPI OleSavedServerDoc(LHSERVERDOC hDoc)
Definition: olesvr_main.c:208
struct _OLESERVERDOC OLESERVERDOC
static HINSTANCE hinst
Definition: edit.c:551
OLESTATUS
Definition: olesvr_main.c:35
OLE_SERVER_USE
Definition: olesvr_main.c:96
LPOLESERVERDOC LPCOLESTR16
Definition: olesvr_main.c:118
LONG LHSERVER
Definition: olesvr_main.c:101