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