ReactOS  0.4.14-dev-57-g333b8f1
ole.h
Go to the documentation of this file.
1 #ifndef _OLE_H
2 #define _OLE_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 #ifdef STRICT
8 #define OLE_LPCSTR LPCSTR
9 #define OLE_CONST const
10 #else
11 #define OLE_LPCSTR LPSTR
12 #define OLE_CONST
13 #endif
14 #define LRESULT LONG
15 #define HGLOBAL HANDLE
16 #define OT_LINK 1L
17 #define OT_EMBEDDED 2L
18 #define OT_STATIC 3L
19 #define OLEVERB_PRIMARY 0
20 #define OF_SET 1
21 #define OF_GET 2
22 #define OF_HANDLER 4
23 
24 typedef struct _OLETARGETDEVICE {
35 typedef enum {
94 } OLESTATUS;
95 typedef enum {
104 typedef enum {
128 typedef enum {
132  } OLEOPT_RENDER;
134 typedef enum {
137 #ifdef OLE_INTERNAL
140 #else
142 #endif
143 } OLEOPT_UPDATE;
144 typedef HANDLE HOBJECT;
145 typedef LONG LHSERVER;
148 typedef struct _OLEOBJECT *LPOLEOBJECT;
149 typedef struct _OLESTREAM *LPOLESTREAM;
150 typedef struct _OLECLIENT *LPOLECLIENT;
151 typedef struct _OLEOBJECTVTBL {
158  OLESTATUS (CALLBACK* SetTargetDevice)(LPOLEOBJECT,HGLOBAL);
161  OLESTATUS (CALLBACK* SetColorScheme)(LPOLEOBJECT,OLE_CONST LOGPALETTE*);
162 #ifndef SERVERONLY
169  OLESTATUS (CALLBACK* CopyToClipboard)(LPOLEOBJECT);
175  OLESTATUS (CALLBACK* Reconnect)(LPOLEOBJECT);
177  OLESTATUS (CALLBACK* GetLinkUpdateOptions)(LPOLEOBJECT,OLEOPT_UPDATE*);
178  OLESTATUS (CALLBACK* SetLinkUpdateOptions)(LPOLEOBJECT,OLEOPT_UPDATE);
180  OLESTATUS (CALLBACK* QueryName)(LPOLEOBJECT,LPSTR,UINT*);
182  OLESTATUS (CALLBACK* QueryBounds)(LPOLEOBJECT,RECT*);
183  OLESTATUS (CALLBACK* QuerySize)(LPOLEOBJECT,DWORD*);
184  OLESTATUS (CALLBACK* QueryOpen)(LPOLEOBJECT);
185  OLESTATUS (CALLBACK* QueryOutOfDate)(LPOLEOBJECT);
186  OLESTATUS (CALLBACK* QueryReleaseStatus)(LPOLEOBJECT);
187  OLESTATUS (CALLBACK* QueryReleaseError)(LPOLEOBJECT);
188  OLE_RELEASE_METHOD (CALLBACK* QueryReleaseMethod)(LPOLEOBJECT);
190  OLESTATUS (CALLBACK* ObjectLong)(LPOLEOBJECT,UINT,LONG*);
192 #endif
193 } OLEOBJECTVTBL;
195 #ifndef OLE_INTERNAL
197 #endif
201 typedef struct _OLESTREAMVTBL {
204 } OLESTREAMVTBL;
207 typedef enum {
211 typedef struct _OLESERVER *LPOLESERVER;
213 typedef struct _OLESERVERVTBL {
221 } OLESERVERVTBL;
224 typedef struct _OLESERVERDOCVTBL {
228  OLESTATUS (CALLBACK* SetDocDimensions)(LPOLESERVERDOC,OLE_CONST RECT*);
302 #ifdef __cplusplus
303 }
304 #endif
305 #endif
OLESTATUS WINAPI OleRenameServerDoc(LHSERVERDOC, LPCSTR)
Definition: olesvr_main.c:188
OLE_RELEASE_METHOD
Definition: olecli.h:97
OLESERVERVTBL * LPOLESERVERVTBL
Definition: ole.h:222
LPOLEOBJECTVTBL lpvtbl
Definition: ole.h:196
OLESTATUS WINAPI OleQueryReleaseStatus(LPOLEOBJECT)
struct _OLESERVERDOCVTBL OLESERVERDOCVTBL
OLESTATUS WINAPI OleCreateLinkFromFile(LPCSTR, LPOLECLIENT, LPCSTR, LPCSTR, LPCSTR, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *, OLEOPT_RENDER, OLECLIPFORMAT)
Definition: ole.h:113
_In_ BOOLEAN Release
Definition: classpnp.h:929
LONG OLECLIPFORMAT
Definition: olecli.h:125
Definition: ole.h:97
OLESTATUS WINAPI OleLockServer(LPOLEOBJECT, LHSERVER *)
USHORT otdEnvironmentOffset
Definition: ole.h:30
VOID Execute(LPTSTR Path)
Definition: stats.c:407
OLESTATUS WINAPI OleCreateLinkFromClip(LPCSTR, LPOLECLIENT, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *, OLEOPT_RENDER, OLECLIPFORMAT)
Definition: olecli_main.c:129
LPOLEOBJECT LPOLEOBJECT LPOLEOBJECT
Definition: ole.h:168
OLESTATUS WINAPI OleSetLinkUpdateOptions(LPOLEOBJECT, OLEOPT_UPDATE)
_In_ BOOLEAN Create
Definition: pstypes.h:511
OLESTATUS WINAPI OleRegisterServer(LPCSTR, LPOLESERVER, LHSERVER *, HINSTANCE, OLE_SERVER_USE)
Definition: olesvr_main.c:166
OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR, OLEOPT_RENDER, OLECLIPFORMAT)
Definition: olecli_main.c:141
OLESTATUS WINAPI OleCreateFromTemplate(LPCSTR, LPOLECLIENT, LPCSTR, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *, OLEOPT_RENDER, OLECLIPFORMAT)
OLE_NOTIFICATION
Definition: ole.h:95
struct _OLEOBJECTVTBL OLEOBJECTVTBL
static HDC
Definition: imagelist.c:92
OLESTATUS WINAPI OleRevokeObject(LPOLECLIENT)
#define CALLBACK
Definition: compat.h:27
void Draw(HDC aDc)
Definition: magnifier.c:359
struct _OLECLIENTVTBL OLECLIENTVTBL
OLE_CONST LOGPALETTE HGLOBAL
Definition: ole.h:232
LPOLESERVERDOC LPOLESERVERDOC OLE_LPCSTR
Definition: ole.h:216
OLESTATUS(CALLBACK *Release)(_LPOLEOBJECT)
OLE_CONST RECT UINT
Definition: ole.h:172
OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC, LPCSTR)
Definition: olecli_main.c:111
OLESTATUS WINAPI OleExecute(LPOLEOBJECT, HGLOBAL, UINT)
int(CALLBACK *CallBack)(LPOLECLIENT
OLE_RELEASE_METHOD WINAPI OleQueryReleaseMethod(LPOLEOBJECT)
OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR, OLEOPT_RENDER, OLECLIPFORMAT)
Definition: olecli_main.c:149
Definition: ole.h:38
OLE_CONST RECT LPOLEOBJECT LPOLECLIENT
Definition: ole.h:229
OLESTATUS WINAPI OleDraw(LPOLEOBJECT, HDC, LPCRECT, LPCRECT, HDC)
char * LPSTR
Definition: xmlstorage.h:182
OLESTATUS WINAPI OleRequestData(LPOLEOBJECT, OLECLIPFORMAT)
OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC)
Definition: olecli_main.c:120
struct _OLECLIENT OLECLIENT
#define OLE_CONST
Definition: ole.h:12
OLESTATUS WINAPI OleQuerySize(LPOLEOBJECT, DWORD *)
OLE_RELEASE_METHOD
Definition: ole.h:104
OLESTATUS
Definition: olecli.h:21
LPOLESERVERDOC OLE_LPCSTR
Definition: ole.h:215
Definition: ole.h:36
OLE_CONST RECT OLECLIPFORMAT
Definition: ole.h:160
OLESTATUS WINAPI OleCreateFromClip(LPCSTR, LPOLECLIENT, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *, OLEOPT_RENDER, OLECLIPFORMAT)
Definition: olecli_main.c:186
#define Open
Definition: syshdrs.h:62
Definition: ole.h:120
HANDLE OLECLIPFORMAT
Definition: ole.h:157
OLESTATUS WINAPI OleSetBounds(LPOLEOBJECT, LPCRECT)
OLESTATUS WINAPI OleQueryType(LPOLEOBJECT, LONG *)
Definition: olecli_main.c:174
USHORT otdExtDevmodeSize
Definition: ole.h:29
OLETARGETDEVICE * LPOLETARGETDEVICE
Definition: ole.h:34
OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT, LPCSTR, LPCSTR)
Definition: olecli_main.c:166
OLESTATUS WINAPI OleRegisterServerDoc(LHSERVER, LPCSTR, LPOLESERVERDOC, LHSERVERDOC *)
Definition: olesvr_main.c:175
unsigned int BOOL
Definition: ntddk_ex.h:94
OLEOBJECTVTBL * LPOLEOBJECTVTBL
Definition: ole.h:194
long LONG
Definition: pedump.c:60
struct _OLESERVERVTBL OLESERVERVTBL
OLE_RELEASE_METHOD(CALLBACK *QueryReleaseMethod)(_LPOLEOBJECT)
OLESTATUS WINAPI OleQueryOutOfDate(LPOLEOBJECT)
OLE_SERVER_USE
Definition: ole.h:207
static int Save(const char **args)
Definition: vfdcmd.c:1851
OLESTATUS WINAPI OleSavedServerDoc(LHSERVERDOC)
Definition: olesvr_main.c:208
OLESTATUS WINAPI OleObjectConvert(LPOLEOBJECT, LPCSTR, LPOLECLIENT, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *)
const char * LPCSTR
Definition: xmlstorage.h:183
HANDLE HOBJECT
Definition: ole.h:144
LPOLESERVERVTBL lpvtbl
Definition: ole.h:223
OLESTATUS WINAPI OleUpdate(LPOLEOBJECT)
OLESTATUS WINAPI OleClone(LPOLEOBJECT, LPOLECLIENT, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *)
LPOLEOBJECT OLEOPT_UPDATE OLEOPT_UPDATE
Definition: ole.h:178
OLESTATUS WINAPI OleSetColorScheme(LPOLEOBJECT, const LOGPALETTE *)
OLESTATUS WINAPI OleSetData(LPOLEOBJECT, OLECLIPFORMAT, HANDLE)
OLESTATUS WINAPI OleCopyToClipboard(LPOLEOBJECT)
struct _OLESTREAM OLESTREAM
LPOLESERVERDOCVTBL lpvtbl
Definition: ole.h:235
OLESTATUS WINAPI OleSaveToStream(LPOLEOBJECT, LPOLESTREAM)
OLE_CONST RECT OLE_CONST RECT HDC
Definition: ole.h:170
static void Exit(void)
Definition: sock.c:1331
BYTE otdData[1]
Definition: ole.h:32
OLECLIPFORMAT WINAPI OleEnumFormats(LPOLEOBJECT, OLECLIPFORMAT)
OLESTATUS(CALLBACK *Open)(LPOLESERVER
#define WINAPI
Definition: msvc.h:8
USHORT otdPortNameOffset
Definition: ole.h:27
LONG LHSERVERDOC
Definition: olesvr_main.c:102
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
HANDLE HANDLE
Definition: ole.h:157
_Must_inspect_result_ _In_ KTMOBJECT_TYPE QueryType
Definition: nttmapi.h:404
#define GetObject
Definition: wingdi.h:4463
USHORT otdDriverNameOffset
Definition: ole.h:26
OLESTATUS WINAPI OleQueryReleaseError(LPOLEOBJECT)
OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR, LPCSTR, LONG, LHCLIENTDOC *)
Definition: olecli_main.c:100
OLESTATUS WINAPI OleGetLinkUpdateOptions(LPOLEOBJECT, OLEOPT_UPDATE *)
LONG LHSERVERDOC
Definition: ole.h:147
OLESTATUS WINAPI OleGetData(LPOLEOBJECT, OLECLIPFORMAT, HANDLE *)
USHORT otdDeviceNameOffset
Definition: ole.h:25
LONG LHCLIENTDOC
Definition: olecli.h:122
void DWORD
Definition: ole.h:202
OLESTATUS WINAPI OleLoadFromStream(LPOLESTREAM, LPCSTR, LPOLECLIENT, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *)
struct _OLESTREAM * LPOLESTREAM
Definition: ole.h:149
Definition: ole.h:105
struct _OLESTREAMVTBL OLESTREAMVTBL
unsigned char BYTE
Definition: mem.h:68
OLESTATUS(CALLBACK *Save)(LPOLESERVERDOC)
OLESTATUS WINAPI OleEqual(LPOLEOBJECT, LPOLEOBJECT)
OLEOPT_UPDATE
Definition: olecli.h:89
OLESTATUS WINAPI OleActivate(LPOLEOBJECT, UINT, BOOL, BOOL, HWND, LPCRECT)
OLESTATUS WINAPI OleRevokeServer(LHSERVER)
Definition: olesvr_main.c:218
OLESTATUS WINAPI OleSetTargetDevice(LPOLEOBJECT, HGLOBAL)
LPOLESTREAMVTBL lpstbl
Definition: ole.h:206
void *CALLBACK * QueryProtocol(_LPOLEOBJECT, LPCOLESTR16)
LPOLECLIENTVTBL lpvtbl
Definition: ole.h:200
OLESTATUS WINAPI OleQueryBounds(LPOLEOBJECT, RECT *)
OLESTATUS WINAPI OleCopyFromLink(LPOLEOBJECT, LPCSTR, LPOLECLIENT, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *)
OLESTATUS WINAPI OleRevertServerDoc(LHSERVERDOC)
Definition: olesvr_main.c:198
Definition: ole.h:98
OLESTATUS WINAPI OleClose(LPOLEOBJECT)
OLESTATUS WINAPI OleEnumObjects(LHCLIENTDOC, LPOLEOBJECT *)
Definition: sacdrv.h:267
unsigned short USHORT
Definition: pedump.c:61
Definition: ole.h:110
OLE_CONST void DWORD
Definition: ole.h:203
static BYTE * GetData(BYTE *pData, ULONG *pLength)
Definition: assembly.c:113
struct _OLESTREAM LHCLIENTDOC
Definition: olecli_main.c:53
struct _OLESERVERDOC * LPOLESERVERDOC
Definition: ole.h:212
OLESTATUS WINAPI OleUnblockServer(LHSERVER, BOOL *)
Definition: olesvr_main.c:146
Definition: ole.h:109
DWORD WINAPI OleQueryServerVersion(void)
unsigned int UINT
Definition: ndis.h:50
BOOL WINAPI OleIsDcMeta(HDC)
Definition: olecli_main.c:157
LONG LHCLIENTDOC
Definition: ole.h:146
OLECLIENTVTBL * LPOLECLIENTVTBL
Definition: ole.h:199
struct _OLESERVER * LPOLESERVER
Definition: ole.h:211
LONG LPOLECLIENT
Definition: ole.h:191
OLESTREAMVTBL * LPOLESTREAMVTBL
Definition: ole.h:205
OLESTATUS
Definition: ole.h:35
OLESTATUS WINAPI OleRelease(LPOLEOBJECT)
LPOLEOBJECT OLE_LPCSTR
Definition: ole.h:167
OLESTATUS WINAPI OleDelete(LPOLEOBJECT)
OLESTATUS WINAPI OleCreateInvisible(LPCSTR, LPOLECLIENT, LPCSTR, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *, OLEOPT_RENDER, OLECLIPFORMAT, BOOL)
struct _OLESERVERDOC OLESERVERDOC
struct _OLECLIENT * LPOLECLIENT
Definition: ole.h:150
OLESTATUS WINAPI OleUnlockServer(LHSERVER)
OLE_NOTIFICATION
Definition: ole.h:198
OLE_CONST RECT OLE_LPCSTR
Definition: ole.h:229
LONG LHSERVER
Definition: ole.h:145
STDMETHOD() Get(THIS_ IN REFGUID PropSet, IN ULONG Id, IN LPVOID InstanceData, IN ULONG InstanceLength, OUT LPVOID PropertyData, IN ULONG DataLength, OUT ULONG *BytesReturned) PURE
USHORT otdEnvironmentSize
Definition: ole.h:31
OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC)
Definition: olesvr_main.c:157
OLESTATUS WINAPI OleRename(LPOLEOBJECT, LPCSTR)
OLESTATUS WINAPI OleCreate(LPCSTR, LPOLECLIENT, LPCSTR, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *, OLEOPT_RENDER, OLECLIPFORMAT)
OLESTATUS WINAPI OleRevertClientDoc(LHCLIENTDOC)
WORD OLECLIPFORMAT
Definition: ole.h:133
OLESERVERDOCVTBL * LPOLESERVERDOCVTBL
Definition: ole.h:234
OLESTATUS WINAPI OleQueryName(LPOLEOBJECT, LPSTR, UINT *)
OLE_SERVER_USE
Definition: olesvr_main.c:96
DWORD WINAPI OleQueryClientVersion(void)
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12
struct _OLEOBJECT * LPOLEOBJECT
Definition: ole.h:148
OLESTATUS WINAPI OleCreateFromFile(LPCSTR, LPOLECLIENT, LPCSTR, LPCSTR, LHCLIENTDOC, LPCSTR, LPOLEOBJECT *, OLEOPT_RENDER, OLECLIPFORMAT)
struct _OLESERVER OLESERVER
OLESTATUS WINAPI OleSavedClientDoc(LHCLIENTDOC)
Definition: olecli_main.c:91
struct _OLEOBJECT OLEOBJECT
OLEOPT_RENDER
Definition: olecli.h:82
OLEOPT_UPDATE
Definition: ole.h:134
OLESTATUS WINAPI OleBlockServer(LHSERVER)
Definition: olesvr_main.c:137
USHORT otdExtDevmodeOffset
Definition: ole.h:28
OLESTATUS WINAPI OleQueryOpen(LPOLEOBJECT)
OLESTATUS WINAPI OleReconnect(LPOLEOBJECT)
struct _OLESTREAM LPOLECLIENT
Definition: olecli_main.c:53
struct _OLETARGETDEVICE OLETARGETDEVICE
LONG LHSERVER
Definition: olesvr_main.c:101
WINAPI void * OleQueryProtocol(LPOLEOBJECT, LPCSTR)
OLEOPT_RENDER
Definition: ole.h:128