Make compile on NetBSD.
[wine] / dlls / olesvr / olesvr_main.c
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 /*      At the moment, these are only empty stubs.
22  */
23
24 #include "config.h"
25
26 #include "ole.h"
27
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(ole);
31
32 static LONG OLE_current_handle;
33
34 /******************************************************************************
35  *              OleRegisterServer       [OLESVR.2]
36  */
37 OLESTATUS WINAPI OleRegisterServer16( LPCSTR name, LPOLESERVER serverStruct,
38                                       LHSERVER *hRet, HINSTANCE16 hServer,
39                                       OLE_SERVER_USE use )
40 {
41     FIXME("(%s,...): stub\n",name);
42     *hRet=++OLE_current_handle;
43     /* return OLE_ERROR_MEMORY, OLE_ERROR_PROTECT_ONLY if you want it fail*/
44     return OLE_OK;
45 }
46
47 /******************************************************************************
48  *              OleBlockServer  [OLESVR.4]
49  */
50 OLESTATUS WINAPI OleBlockServer16(LHSERVER hServer)
51 {
52     FIXME("(%ld): stub\n",hServer);
53     return OLE_OK;
54 }
55
56 /******************************************************************************
57  *              OleBlockServer  [OLESVR32.4]
58  */
59 OLESTATUS WINAPI OleBlockServer(LHSERVER hServer)
60 {
61     FIXME("(%ld): stub\n",hServer);
62     return OLE_OK;
63 }
64
65 /******************************************************************************
66  *              OleUnblockServer        [OLESVR.5]
67  */
68 OLESTATUS WINAPI OleUnblockServer16(LHSERVER hServer, BOOL16 *block)
69 {
70     FIXME("(%ld): stub\n",hServer);
71     /* no more blocked messages :) */
72     *block=FALSE;
73     return OLE_OK;
74 }
75
76 /******************************************************************************
77  *              OleUnblockServer        [OLESVR32.5]
78  */
79 OLESTATUS WINAPI OleUnblockServer(LHSERVER hServer, BOOL *block)
80 {
81     FIXME("(%ld): stub\n",hServer);
82     /* no more blocked messages :) */
83     *block=FALSE;
84     return OLE_OK;
85 }
86
87 /***********************************************************************
88  *              OleRegisterServerDoc    [OLESVR.6]
89  */
90 OLESTATUS WINAPI OleRegisterServerDoc16( LHSERVER hServer, LPCSTR docname,
91                                          LPOLESERVERDOC document,
92                                          LHSERVERDOC *hRet)
93 {
94     FIXME("(%ld,%s): stub\n",hServer, docname);
95     *hRet=++OLE_current_handle;
96     return OLE_OK;
97 }
98
99 /******************************************************************************
100  *              OleRevokeServerDoc      [OLESVR.7]
101  */
102 OLESTATUS WINAPI OleRevokeServerDoc16(LHSERVERDOC hServerDoc)
103 {
104     FIXME("%ld  - stub\n",hServerDoc);
105     return OLE_OK;
106 }
107
108 /******************************************************************************
109  *              OleRevokeServerDoc      [OLESVR32.7]
110  */
111 OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC hServerDoc)
112 {
113     FIXME("(%ld): stub\n",hServerDoc);
114     return OLE_OK;
115 }
116
117 /******************************************************************************
118  *              OleRevokeServer [OLESVR.3]
119  */
120 OLESTATUS WINAPI OleRevokeServer16(LHSERVER hServer)
121 {
122     FIXME("%ld - stub\n",hServer);
123     return OLE_OK;
124 }
125
126 /******************************************************************************
127  * OleRegisterServer [OLESVR32.2]
128  */
129 OLESTATUS WINAPI OleRegisterServer(LPCSTR svrname,LPOLESERVER olesvr,LHSERVER* hRet,HINSTANCE hinst,OLE_SERVER_USE osu) {
130         FIXME("(%s,%p,%p,%08x,%d): stub!\n",svrname,olesvr,hRet,hinst,osu);
131         *hRet=++OLE_current_handle;
132         return OLE_OK;
133 }
134
135 /******************************************************************************
136  * OleRegisterServerDoc [OLESVR32.6]
137  */
138 OLESTATUS WINAPI OleRegisterServerDoc( LHSERVER hServer, LPCSTR docname,
139                                          LPOLESERVERDOC document,
140                                          LHSERVERDOC *hRet)
141 {
142     FIXME("(%ld,%s): stub\n", hServer, docname);
143     *hRet=++OLE_current_handle;
144     return OLE_OK;
145 }
146
147 /******************************************************************************
148  *              OleRenameServerDoc      [OLESVR32.8]
149  *
150  */
151 OLESTATUS WINAPI OleRenameServerDoc(LHSERVERDOC hDoc, LPCSTR newName)
152 {
153     FIXME("(%ld,%s): stub.\n",hDoc, newName);
154     return OLE_OK;
155 }