ReactOS 0.4.15-dev-8092-ge0ba2f3
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
37typedef struct _OLEOBJECTVTBL {
47 OLESTATUS (CALLBACK *SetColorScheme)(_LPOLEOBJECT,struct tagLOGPALETTE*);
50 OLESTATUS (CALLBACK *SaveToStream)(_LPOLEOBJECT,struct _OLESTREAM*);
54 OLESTATUS (CALLBACK *CopyToClipBoard)(_LPOLEOBJECT);
63 OLESTATUS (CALLBACK *SetLinkUpdateOptions)(_LPOLEOBJECT,OLEOPT_UPDATE);
70 OLESTATUS (CALLBACK *QueryOutOfDate)(_LPOLEOBJECT);
71 OLESTATUS (CALLBACK *QueryReleaseStatus)(_LPOLEOBJECT);
72 OLESTATUS (CALLBACK *QueryReleaseError)(_LPOLEOBJECT);
78
79typedef struct _OLEOBJECT
80{
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 */
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,
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,
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}
static POBJECT_TYPE GetObjectType(IN PCWSTR TypeName)
Definition: ObTypes.c:15
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12
@ Update
Definition: registry.c:565
static INT Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
Definition: cmd.c:347
#define FIXME(fmt,...)
Definition: debug.h:114
_In_ BOOLEAN Release
Definition: cdrom.h:920
#define CALLBACK
Definition: compat.h:35
r reserved
Definition: btrfs.c:3006
unsigned int BOOL
Definition: ntddk_ex.h:94
static BYTE * GetData(BYTE *pData, ULONG *pLength)
Definition: assembly.c:114
void Draw(HDC aDc)
Definition: magnifier.c:359
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
static WCHAR name1[]
Definition: record.c:34
static WCHAR name2[]
Definition: record.c:35
UINT16 HANDLE16
Definition: netiodef.h:47
_Must_inspect_result_ _In_ KTMOBJECT_TYPE QueryType
Definition: nttmapi.h:404
#define OBJ_METADC
Definition: objidl.idl:1412
OLESTATUS
Definition: ole.h:35
LPCSTR LPCOLESTR16
Definition: olecli.h:127
OLEOPT_RENDER
Definition: olecli.h:83
LONG OLECLIPFORMAT
Definition: olecli.h:125
OLESTATUS
Definition: olecli.h:22
@ OLE_OK
Definition: olecli.h:23
LONG LHCLIENTDOC
Definition: olecli.h:122
OLESTATUS WINAPI OleCreateFromClip(LPCSTR name, LPOLECLIENT olecli, LHCLIENTDOC hclientdoc, LPCSTR xname, _LPOLEOBJECT *lpoleob, OLEOPT_RENDER render, OLECLIPFORMAT clipformat)
Definition: olecli_main.c:184
OLESTATUS WINAPI OleQueryType(_LPOLEOBJECT oleob, LONG *xlong)
Definition: olecli_main.c:172
OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname, LONG reserved, LHCLIENTDOC *hRet)
Definition: olecli_main.c:98
OLEOBJECTVTBL * LPOLEOBJECTVTBL
Definition: olecli_main.c:77
struct _OLEOBJECTVTBL OLEOBJECTVTBL
OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
Definition: olecli_main.c:118
OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
Definition: olecli_main.c:109
OLESTATUS WINAPI OleSavedClientDoc(LHCLIENTDOC hDoc)
Definition: olecli_main.c:89
static LONG OLE_current_handle
Definition: olecli_main.c:84
OLESTATUS WINAPI OleSetHostNames(_LPOLEOBJECT oleob, LPCSTR name1, LPCSTR name2)
Definition: olecli_main.c:164
struct _OLEOBJECT OLEOBJECT
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
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
long LONG
Definition: pedump.c:60
WCHAR classname[128]
Definition: startup.c:15
@ Close
Definition: sacdrv.h:268
#define TRACE(s)
Definition: solgame.cpp:4
static void render(void)
Definition: ssstars.c:272
_LPOLEOBJECT LPOLEOPT_UPDATE
Definition: olecli_main.c:62
OLESTATUS(CALLBACK *Update)(_LPOLEOBJECT)
OLESTATUS(CALLBACK *DoVerb)(_LPOLEOBJECT
OLESTATUS(CALLBACK *ObjectLong)(_LPOLEOBJECT
OLESTATUS(CALLBACK *Rename)(_LPOLEOBJECT
OLESTATUS(CALLBACK *QueryReleaseError)(_LPOLEOBJECT)
HANDLE16 HANDLE16
Definition: olecli_main.c:43
OLE_RELEASE_METHOD(CALLBACK *QueryReleaseMethod)(_LPOLEOBJECT)
struct _OLESTREAM LPOLECLIENT
Definition: olecli_main.c:51
OLESTATUS(CALLBACK *QueryReleaseStatus)(_LPOLEOBJECT)
OLESTATUS(CALLBACK *Reconnect)(_LPOLEOBJECT)
OLESTATUS(CALLBACK *EnumFormats)(_LPOLEOBJECT
OLESTATUS(CALLBACK *Close)(_LPOLEOBJECT)
struct _OLESTREAM _LPOLEOBJECT LHCLIENTDOC
Definition: olecli_main.c:52
OLESTATUS(CALLBACK *SetColorScheme)(_LPOLEOBJECT
struct tagLOGPALETTE * OLESTATUS(CALLBACK *Delete)(_LPOLEOBJECT)
OLESTATUS(CALLBACK *Release)(_LPOLEOBJECT)
OLESTATUS(CALLBACK *QueryBounds)(_LPOLEOBJECT
OLESTATUS(CALLBACK *CopyToClipBoard)(_LPOLEOBJECT)
OLESTATUS(CALLBACK *QueryOutOfDate)(_LPOLEOBJECT)
void *CALLBACK * QueryProtocol(_LPOLEOBJECT, LPCOLESTR16)
OLESTATUS(CALLBACK *Execute)(_LPOLEOBJECT
OLESTATUS(CALLBACK *RequestData)(_LPOLEOBJECT
struct _OLESTREAM LHCLIENTDOC
Definition: olecli_main.c:51
OLESTATUS(CALLBACK *QueryOpen)(_LPOLEOBJECT)
struct _OLESTREAM _LPOLEOBJECT _LPOLEOBJECT _LPOLEOBJECT
Definition: olecli_main.c:53
OLESTATUS(CALLBACK *SaveToStream)(_LPOLEOBJECT
const OLEOBJECTVTBL * lpvtbl
Definition: olecli_main.c:81
Definition: name.c:39
#define WINAPI
Definition: msvc.h:6
const char * LPCSTR
Definition: xmlstorage.h:183