ReactOS  0.4.13-dev-563-g0561610
olecli_main.c
Go to the documentation of this file.
1 /*
2  * OLECLI 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 "wine/windef16.h"
30 #include "winbase.h"
31 #include "wingdi.h"
32 #include "wownt32.h"
33 #include "objbase.h"
34 #include "olecli.h"
35 #include "wine/debug.h"
36 
38 
39 typedef struct _OLEOBJECTVTBL {
49  OLESTATUS (CALLBACK *SetColorScheme)(_LPOLEOBJECT,struct tagLOGPALETTE*);
52  OLESTATUS (CALLBACK *SaveToStream)(_LPOLEOBJECT,struct _OLESTREAM*);
56  OLESTATUS (CALLBACK *CopyToClipBoard)(_LPOLEOBJECT);
62  OLESTATUS (CALLBACK *Reconnect)(_LPOLEOBJECT);
64  OLESTATUS (CALLBACK *GetLinkUpdateOptions)(_LPOLEOBJECT,LPOLEOPT_UPDATE);
65  OLESTATUS (CALLBACK *SetLinkUpdateOptions)(_LPOLEOBJECT,OLEOPT_UPDATE);
69  OLESTATUS (CALLBACK *QueryBounds)(_LPOLEOBJECT,LPRECT16);
71  OLESTATUS (CALLBACK *QueryOpen)(_LPOLEOBJECT);
72  OLESTATUS (CALLBACK *QueryOutOfDate)(_LPOLEOBJECT);
73  OLESTATUS (CALLBACK *QueryReleaseStatus)(_LPOLEOBJECT);
74  OLESTATUS (CALLBACK *QueryReleaseError)(_LPOLEOBJECT);
75  OLE_RELEASE_METHOD (CALLBACK *QueryReleaseMethod)(_LPOLEOBJECT);
80 
81 typedef struct _OLEOBJECT
82 {
84 } OLEOBJECT;
85 
87 
88 /******************************************************************************
89  * OleSavedClientDoc [OLECLI32.45]
90  */
92 {
93  FIXME("(%d: stub\n", hDoc);
94  return OLE_OK;
95 }
96 
97 /******************************************************************************
98  * OleRegisterClientDoc [OLECLI32.41]
99  */
101  LONG reserved, LHCLIENTDOC *hRet )
102 {
103  FIXME("(%s,%s,...): stub\n",classname,docname);
104  *hRet=++OLE_current_handle;
105  return OLE_OK;
106 }
107 
108 /******************************************************************************
109  * OleRenameClientDoc [OLECLI32.43]
110  */
112 {
113  FIXME("(%d,%s,...): stub\n",hDoc, newName);
114  return OLE_OK;
115 }
116 
117 /******************************************************************************
118  * OleRevokeClientDoc [OLECLI32.42]
119  */
121 {
122  FIXME("(%d): stub\n",hServerDoc);
123  return OLE_OK;
124 }
125 
126 /******************************************************************************
127  * OleCreateLinkFromClip [OLECLI32.11]
128  */
130  LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
131  _LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
132 ) {
133  FIXME("(%s,%p,%08x,%s,%p,%d,%d): stub!\n",
134  name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
135  return OLE_OK;
136 }
137 
138 /******************************************************************************
139  * OleQueryLinkFromClip [OLECLI32.9]
140  */
142  FIXME("(%s,%d,%d): stub!\n",name,render,clipformat);
143  return OLE_OK;
144 }
145 
146 /******************************************************************************
147  * OleQueryCreateFromClip [OLECLI32.10]
148  */
150  FIXME("(%s,%d,%d): stub!\n",name,render,clipformat);
151  return OLE_OK;
152 }
153 
154 /******************************************************************************
155  * OleIsDcMeta [OLECLI32.60]
156  */
158 {
159  TRACE("(%p)\n",hdc);
160  return GetObjectType( hdc ) == OBJ_METADC;
161 }
162 
163 /******************************************************************************
164  * OleSetHostNames [OLECLI32.15]
165  */
167  FIXME("(%p,%s,%s): stub\n",oleob,name1,name2);
168  return OLE_OK;
169 }
170 
171 /******************************************************************************
172  * OleQueryType [OLECLI32.14]
173  */
175  FIXME("(%p,%p): stub!\n",oleob,xlong);
176  if (!oleob)
177  return 0x10;
178  TRACE("Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
179  oleob->lpvtbl->QueryType,oleob,xlong);
180  return oleob->lpvtbl->QueryType(oleob,xlong);
181 }
182 
183 /******************************************************************************
184  * OleCreateFromClip [OLECLI32.12]
185  */
187  LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
188  _LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
189 ) {
190  FIXME("(%s,%p,%08x,%s,%p,%d,%d): stub!\n",
191  name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
192  /* clipb type, object kreieren entsprechend etc. */
193  return OLE_OK;
194 }
OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
Definition: olecli_main.c:111
OLEOBJECTVTBL * LPOLEOBJECTVTBL
Definition: olecli_main.c:79
const OLEOBJECTVTBL * lpvtbl
Definition: olecli_main.c:83
_In_ BOOLEAN Release
Definition: classpnp.h:929
LONG OLECLIPFORMAT
Definition: olecli.h:125
VOID Execute(LPTSTR Path)
Definition: stats.c:407
struct _OLEOBJECTVTBL OLEOBJECTVTBL
static HDC
Definition: imagelist.c:92
#define CALLBACK
Definition: compat.h:27
void Draw(HDC aDc)
Definition: magnifier.c:359
struct _OLESTREAM _LPOLEOBJECT _LPOLEOBJECT _LPOLEOBJECT
Definition: olecli_main.c:55
OLESTATUS(CALLBACK *Release)(_LPOLEOBJECT)
struct _OLESTREAM _LPOLEOBJECT LPOLECLIENT
Definition: olecli_main.c:54
UINT16 HANDLE16
Definition: netiodef.h:47
OLESTATUS WINAPI OleQueryType(_LPOLEOBJECT oleob, LONG *xlong)
Definition: olecli_main.c:174
WCHAR classname[128]
Definition: startup.c:15
static WCHAR name1[]
Definition: record.c:34
HANDLE16 HANDLE16
Definition: olecli_main.c:45
OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname, LONG reserved, LHCLIENTDOC *hRet)
Definition: olecli_main.c:100
OLESTATUS
Definition: olecli.h:21
OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name, OLEOPT_RENDER render, OLECLIPFORMAT clipformat)
Definition: olecli_main.c:141
OLESTATUS WINAPI OleCreateLinkFromClip(LPCSTR name, LPOLECLIENT olecli, LHCLIENTDOC hclientdoc, LPCSTR xname, _LPOLEOBJECT *lpoleob, OLEOPT_RENDER render, OLECLIPFORMAT clipformat)
Definition: olecli_main.c:129
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
HANDLE16 OLECLIPFORMAT
Definition: olecli_main.c:45
OLE_RELEASE_METHOD(CALLBACK *QueryReleaseMethod)(_LPOLEOBJECT)
#define FIXME(fmt,...)
Definition: debug.h:110
r reserved
Definition: btrfs.c:2704
Definition: olecli.h:23
OLESTATUS WINAPI OleSavedClientDoc(LHCLIENTDOC hDoc)
Definition: olecli_main.c:91
const char * LPCSTR
Definition: xmlstorage.h:183
LPCSTR LPCOLESTR16
Definition: olecli.h:127
OLESTATUS WINAPI OleCreateFromClip(LPCSTR name, LPOLECLIENT olecli, LHCLIENTDOC hclientdoc, LPCSTR xname, _LPOLEOBJECT *lpoleob, OLEOPT_RENDER render, OLECLIPFORMAT clipformat)
Definition: olecli_main.c:186
#define TRACE(s)
Definition: solgame.cpp:4
static void render(void)
Definition: ssstars.c:272
#define WINAPI
Definition: msvc.h:8
struct _OLEOBJECT OLEOBJECT
WINE_DEFAULT_DEBUG_CHANNEL(ole)
_Must_inspect_result_ _In_ KTMOBJECT_TYPE QueryType
Definition: nttmapi.h:404
OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name, OLEOPT_RENDER render, OLECLIPFORMAT clipformat)
Definition: olecli_main.c:149
BOOL WINAPI OleIsDcMeta(HDC hdc)
Definition: olecli_main.c:157
LONG LHCLIENTDOC
Definition: olecli.h:122
HDC hdc
Definition: main.c:9
_LPOLEOBJECT LPOLEOPT_UPDATE
Definition: olecli_main.c:64
void *CALLBACK * QueryProtocol(_LPOLEOBJECT, LPCOLESTR16)
Definition: sacdrv.h:267
static BYTE * GetData(BYTE *pData, ULONG *pLength)
Definition: assembly.c:113
struct _OLESTREAM LHCLIENTDOC
Definition: olecli_main.c:53
#define OBJ_METADC
Definition: objidl.idl:1412
static POBJECT_TYPE GetObjectType(IN PCWSTR TypeName)
Definition: ObTypes.c:15
Definition: name.c:36
static WCHAR name2[]
Definition: record.c:35
OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
Definition: olecli_main.c:120
static LONG OLE_current_handle
Definition: olecli_main.c:86
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12
OLEOPT_RENDER
Definition: olecli.h:82
OLESTATUS WINAPI OleSetHostNames(_LPOLEOBJECT oleob, LPCSTR name1, LPCSTR name2)
Definition: olecli_main.c:166
struct _OLESTREAM LPOLECLIENT
Definition: olecli_main.c:53