ReactOS  0.4.15-dev-1201-gb2cf5a4
olesvr_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "objbase.h"
#include "wine/debug.h"
Include dependency graph for olesvr_main.c:

Go to the source code of this file.

Classes

struct  _OLESERVERDOC
 
struct  _OLESERVERVTBL
 
struct  _OLESERVER
 

Typedefs

typedef LONG LHSERVER
 
typedef LONG LHSERVERDOC
 
typedef LPCSTR LPCOLESTR16
 
typedef struct _OLESERVERDOCLPOLESERVERDOC
 
typedef struct _OLESERVERDOC OLESERVERDOC
 
typedef struct _OLESERVERLPOLESERVER
 
typedef struct _OLESERVERVTBL OLESERVERVTBL
 
typedef struct _OLESERVERVTBLLPOLESERVERVTBL
 
typedef struct _OLESERVER OLESERVER
 

Enumerations

enum  OLESTATUS {
  OLE_OK, OLE_WAIT_FOR_RELEASE, OLE_BUSY, OLE_ERROR_PROTECT_ONLY,
  OLE_ERROR_MEMORY, OLE_ERROR_STREAM, OLE_ERROR_STATIC, OLE_ERROR_BLANK,
  OLE_ERROR_DRAW, OLE_ERROR_METAFILE, OLE_ERROR_ABORT, OLE_ERROR_CLIPBOARD,
  OLE_ERROR_FORMAT, OLE_ERROR_OBJECT, OLE_ERROR_OPTION, OLE_ERROR_PROTOCOL,
  OLE_ERROR_ADDRESS, OLE_ERROR_NOT_EQUAL, OLE_ERROR_HANDLE, OLE_ERROR_GENERIC,
  OLE_ERROR_CLASS, OLE_ERROR_SYNTAX, OLE_ERROR_DATATYPE, OLE_ERROR_PALETTE,
  OLE_ERROR_NOT_LINK, OLE_ERROR_NOT_EMPTY, OLE_ERROR_SIZE, OLE_ERROR_DRIVE,
  OLE_ERROR_NETWORK, OLE_ERROR_NAME, OLE_ERROR_TEMPLATE, OLE_ERROR_NEW,
  OLE_ERROR_EDIT, OLE_ERROR_OPEN, OLE_ERROR_NOT_OPEN, OLE_ERROR_LAUNCH,
  OLE_ERROR_COMM, OLE_ERROR_TERMINATE, OLE_ERROR_COMMAND, OLE_ERROR_SHOW,
  OLE_ERROR_DOVERB, OLE_ERROR_ADVISE_NATIVE, OLE_ERROR_ADVISE_PICT, OLE_ERROR_ADVISE_RENAME,
  OLE_ERROR_POKE_NATIVE, OLE_ERROR_REQUEST_NATIVE, OLE_ERROR_REQUEST_PICT, OLE_ERROR_SERVER_BLOCKED,
  OLE_ERROR_REGISTRATION, OLE_ERROR_ALREADY_REGISTERED, OLE_ERROR_TASK, OLE_ERROR_OUTOFDATE,
  OLE_ERROR_CANT_UPDATE_CLIENT, OLE_ERROR_UPDATE, OLE_ERROR_SETDATA_FORMAT, OLE_ERROR_STATIC_FROM_OTHER_OS,
  OLE_WARN_DELETE_DATA = 1000, OLE_OK, OLE_WAIT_FOR_RELEASE, OLE_BUSY,
  OLE_ERROR_PROTECT_ONLY, OLE_ERROR_MEMORY, OLE_ERROR_STREAM, OLE_ERROR_STATIC,
  OLE_ERROR_BLANK, OLE_ERROR_DRAW, OLE_ERROR_METAFILE, OLE_ERROR_ABORT,
  OLE_ERROR_CLIPBOARD, OLE_ERROR_FORMAT, OLE_ERROR_OBJECT, OLE_ERROR_OPTION,
  OLE_ERROR_PROTOCOL, OLE_ERROR_ADDRESS, OLE_ERROR_NOT_EQUAL, OLE_ERROR_HANDLE,
  OLE_ERROR_GENERIC, OLE_ERROR_CLASS, OLE_ERROR_SYNTAX, OLE_ERROR_DATATYPE,
  OLE_ERROR_PALETTE, OLE_ERROR_NOT_LINK, OLE_ERROR_NOT_EMPTY, OLE_ERROR_SIZE,
  OLE_ERROR_DRIVE, OLE_ERROR_NETWORK, OLE_ERROR_NAME, OLE_ERROR_TEMPLATE,
  OLE_ERROR_NEW, OLE_ERROR_EDIT, OLE_ERROR_OPEN, OLE_ERROR_NOT_OPEN,
  OLE_ERROR_LAUNCH, OLE_ERROR_COMM, OLE_ERROR_TERMINATE, OLE_ERROR_COMMAND,
  OLE_ERROR_SHOW, OLE_ERROR_DOVERB, OLE_ERROR_ADVISE_NATIVE, OLE_ERROR_ADVISE_PICT,
  OLE_ERROR_ADVISE_RENAME, OLE_ERROR_POKE_NATIVE, OLE_ERROR_REQUEST_NATIVE, OLE_ERROR_REQUEST_PICT,
  OLE_ERROR_SERVER_BLOCKED, OLE_ERROR_REGISTRATION, OLE_ERROR_ALREADY_REGISTERED, OLE_ERROR_TASK,
  OLE_ERROR_OUTOFDATE, OLE_ERROR_CANT_UPDATE_CLIENT, OLE_ERROR_UPDATE, OLE_ERROR_SETDATA_FORMAT,
  OLE_ERROR_STATIC_FROM_OTHER_OS, OLE_WARN_DELETE_DATA = 1000, OLE_OK, OLE_WAIT_FOR_RELEASE,
  OLE_BUSY, OLE_ERROR_PROTECT_ONLY, OLE_ERROR_MEMORY, OLE_ERROR_STREAM,
  OLE_ERROR_STATIC, OLE_ERROR_BLANK, OLE_ERROR_DRAW, OLE_ERROR_METAFILE,
  OLE_ERROR_ABORT, OLE_ERROR_CLIPBOARD, OLE_ERROR_FORMAT, OLE_ERROR_OBJECT,
  OLE_ERROR_OPTION, OLE_ERROR_PROTOCOL, OLE_ERROR_ADDRESS, OLE_ERROR_NOT_EQUAL,
  OLE_ERROR_HANDLE, OLE_ERROR_GENERIC, OLE_ERROR_CLASS, OLE_ERROR_SYNTAX,
  OLE_ERROR_DATATYPE, OLE_ERROR_PALETTE, OLE_ERROR_NOT_LINK, OLE_ERROR_NOT_EMPTY,
  OLE_ERROR_SIZE, OLE_ERROR_DRIVE, OLE_ERROR_NETWORK, OLE_ERROR_NAME,
  OLE_ERROR_TEMPLATE, OLE_ERROR_NEW, OLE_ERROR_EDIT, OLE_ERROR_OPEN,
  OLE_ERROR_NOT_OPEN, OLE_ERROR_LAUNCH, OLE_ERROR_COMM, OLE_ERROR_TERMINATE,
  OLE_ERROR_COMMAND, OLE_ERROR_SHOW, OLE_ERROR_DOVERB, OLE_ERROR_ADVISE_NATIVE,
  OLE_ERROR_ADVISE_PICT, OLE_ERROR_ADVISE_RENAME, OLE_ERROR_POKE_NATIVE, OLE_ERROR_REQUEST_NATIVE,
  OLE_ERROR_REQUEST_PICT, OLE_ERROR_SERVER_BLOCKED, OLE_ERROR_REGISTRATION, OLE_ERROR_ALREADY_REGISTERED,
  OLE_ERROR_TASK, OLE_ERROR_OUTOFDATE, OLE_ERROR_CANT_UPDATE_CLIENT, OLE_ERROR_UPDATE,
  OLE_ERROR_SETDATA_FORMAT, OLE_ERROR_STATIC_FROM_OTHER_OS, OLE_ERROR_FILE_VER, OLE_WARN_DELETE_DATA = 1000
}
 
enum  OLE_SERVER_USE { OLE_SERVER_MULTI, OLE_SERVER_SINGLE, OLE_SERVER_MULTI, OLE_SERVER_SINGLE }
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ole)
 
OLESTATUS WINAPI OleBlockServer (LHSERVER hServer)
 
OLESTATUS WINAPI OleUnblockServer (LHSERVER hServer, BOOL *block)
 
OLESTATUS WINAPI OleRevokeServerDoc (LHSERVERDOC hServerDoc)
 
OLESTATUS WINAPI OleRegisterServer (LPCSTR svrname, LPOLESERVER olesvr, LHSERVER *hRet, HINSTANCE hinst, OLE_SERVER_USE osu)
 
OLESTATUS WINAPI OleRegisterServerDoc (LHSERVER hServer, LPCSTR docname, LPOLESERVERDOC document, LHSERVERDOC *hRet)
 
OLESTATUS WINAPI OleRenameServerDoc (LHSERVERDOC hDoc, LPCSTR newName)
 
OLESTATUS WINAPI OleRevertServerDoc (LHSERVERDOC hDoc)
 
OLESTATUS WINAPI OleSavedServerDoc (LHSERVERDOC hDoc)
 
OLESTATUS WINAPI OleRevokeServer (LHSERVER hServer)
 

Variables

static LONG OLE_current_handle
 

Typedef Documentation

◆ LHSERVER

typedef LONG LHSERVER

Definition at line 99 of file olesvr_main.c.

◆ LHSERVERDOC

typedef LONG LHSERVERDOC

Definition at line 100 of file olesvr_main.c.

◆ LPCOLESTR16

Definition at line 101 of file olesvr_main.c.

◆ LPOLESERVER

Definition at line 112 of file olesvr_main.c.

◆ LPOLESERVERDOC

Definition at line 103 of file olesvr_main.c.

◆ LPOLESERVERVTBL

◆ OLESERVER

◆ OLESERVERDOC

◆ OLESERVERVTBL

Enumeration Type Documentation

◆ OLE_SERVER_USE

Enumerator
OLE_SERVER_MULTI 
OLE_SERVER_SINGLE 
OLE_SERVER_MULTI 
OLE_SERVER_SINGLE 

Definition at line 94 of file olesvr_main.c.

◆ OLESTATUS

Enumerator
OLE_OK 
OLE_WAIT_FOR_RELEASE 
OLE_BUSY 
OLE_ERROR_PROTECT_ONLY 
OLE_ERROR_MEMORY 
OLE_ERROR_STREAM 
OLE_ERROR_STATIC 
OLE_ERROR_BLANK 
OLE_ERROR_DRAW 
OLE_ERROR_METAFILE 
OLE_ERROR_ABORT 
OLE_ERROR_CLIPBOARD 
OLE_ERROR_FORMAT 
OLE_ERROR_OBJECT 
OLE_ERROR_OPTION 
OLE_ERROR_PROTOCOL 
OLE_ERROR_ADDRESS 
OLE_ERROR_NOT_EQUAL 
OLE_ERROR_HANDLE 
OLE_ERROR_GENERIC 
OLE_ERROR_CLASS 
OLE_ERROR_SYNTAX 
OLE_ERROR_DATATYPE 
OLE_ERROR_PALETTE 
OLE_ERROR_NOT_LINK 
OLE_ERROR_NOT_EMPTY 
OLE_ERROR_SIZE 
OLE_ERROR_DRIVE 
OLE_ERROR_NETWORK 
OLE_ERROR_NAME 
OLE_ERROR_TEMPLATE 
OLE_ERROR_NEW 
OLE_ERROR_EDIT 
OLE_ERROR_OPEN 
OLE_ERROR_NOT_OPEN 
OLE_ERROR_LAUNCH 
OLE_ERROR_COMM 
OLE_ERROR_TERMINATE 
OLE_ERROR_COMMAND 
OLE_ERROR_SHOW 
OLE_ERROR_DOVERB 
OLE_ERROR_ADVISE_NATIVE 
OLE_ERROR_ADVISE_PICT 
OLE_ERROR_ADVISE_RENAME 
OLE_ERROR_POKE_NATIVE 
OLE_ERROR_REQUEST_NATIVE 
OLE_ERROR_REQUEST_PICT 
OLE_ERROR_SERVER_BLOCKED 
OLE_ERROR_REGISTRATION 
OLE_ERROR_ALREADY_REGISTERED 
OLE_ERROR_TASK 
OLE_ERROR_OUTOFDATE 
OLE_ERROR_CANT_UPDATE_CLIENT 
OLE_ERROR_UPDATE 
OLE_ERROR_SETDATA_FORMAT 
OLE_ERROR_STATIC_FROM_OTHER_OS 
OLE_WARN_DELETE_DATA 
OLE_OK 
OLE_WAIT_FOR_RELEASE 
OLE_BUSY 
OLE_ERROR_PROTECT_ONLY 
OLE_ERROR_MEMORY 
OLE_ERROR_STREAM 
OLE_ERROR_STATIC 
OLE_ERROR_BLANK 
OLE_ERROR_DRAW 
OLE_ERROR_METAFILE 
OLE_ERROR_ABORT 
OLE_ERROR_CLIPBOARD 
OLE_ERROR_FORMAT 
OLE_ERROR_OBJECT 
OLE_ERROR_OPTION 
OLE_ERROR_PROTOCOL 
OLE_ERROR_ADDRESS 
OLE_ERROR_NOT_EQUAL 
OLE_ERROR_HANDLE 
OLE_ERROR_GENERIC 
OLE_ERROR_CLASS 
OLE_ERROR_SYNTAX 
OLE_ERROR_DATATYPE 
OLE_ERROR_PALETTE 
OLE_ERROR_NOT_LINK 
OLE_ERROR_NOT_EMPTY 
OLE_ERROR_SIZE 
OLE_ERROR_DRIVE 
OLE_ERROR_NETWORK 
OLE_ERROR_NAME 
OLE_ERROR_TEMPLATE 
OLE_ERROR_NEW 
OLE_ERROR_EDIT 
OLE_ERROR_OPEN 
OLE_ERROR_NOT_OPEN 
OLE_ERROR_LAUNCH 
OLE_ERROR_COMM 
OLE_ERROR_TERMINATE 
OLE_ERROR_COMMAND 
OLE_ERROR_SHOW 
OLE_ERROR_DOVERB 
OLE_ERROR_ADVISE_NATIVE 
OLE_ERROR_ADVISE_PICT 
OLE_ERROR_ADVISE_RENAME 
OLE_ERROR_POKE_NATIVE 
OLE_ERROR_REQUEST_NATIVE 
OLE_ERROR_REQUEST_PICT 
OLE_ERROR_SERVER_BLOCKED 
OLE_ERROR_REGISTRATION 
OLE_ERROR_ALREADY_REGISTERED 
OLE_ERROR_TASK 
OLE_ERROR_OUTOFDATE 
OLE_ERROR_CANT_UPDATE_CLIENT 
OLE_ERROR_UPDATE 
OLE_ERROR_SETDATA_FORMAT 
OLE_ERROR_STATIC_FROM_OTHER_OS 
OLE_WARN_DELETE_DATA 
OLE_OK 
OLE_WAIT_FOR_RELEASE 
OLE_BUSY 
OLE_ERROR_PROTECT_ONLY 
OLE_ERROR_MEMORY 
OLE_ERROR_STREAM 
OLE_ERROR_STATIC 
OLE_ERROR_BLANK 
OLE_ERROR_DRAW 
OLE_ERROR_METAFILE 
OLE_ERROR_ABORT 
OLE_ERROR_CLIPBOARD 
OLE_ERROR_FORMAT 
OLE_ERROR_OBJECT 
OLE_ERROR_OPTION 
OLE_ERROR_PROTOCOL 
OLE_ERROR_ADDRESS 
OLE_ERROR_NOT_EQUAL 
OLE_ERROR_HANDLE 
OLE_ERROR_GENERIC 
OLE_ERROR_CLASS 
OLE_ERROR_SYNTAX 
OLE_ERROR_DATATYPE 
OLE_ERROR_PALETTE 
OLE_ERROR_NOT_LINK 
OLE_ERROR_NOT_EMPTY 
OLE_ERROR_SIZE 
OLE_ERROR_DRIVE 
OLE_ERROR_NETWORK 
OLE_ERROR_NAME 
OLE_ERROR_TEMPLATE 
OLE_ERROR_NEW 
OLE_ERROR_EDIT 
OLE_ERROR_OPEN 
OLE_ERROR_NOT_OPEN 
OLE_ERROR_LAUNCH 
OLE_ERROR_COMM 
OLE_ERROR_TERMINATE 
OLE_ERROR_COMMAND 
OLE_ERROR_SHOW 
OLE_ERROR_DOVERB 
OLE_ERROR_ADVISE_NATIVE 
OLE_ERROR_ADVISE_PICT 
OLE_ERROR_ADVISE_RENAME 
OLE_ERROR_POKE_NATIVE 
OLE_ERROR_REQUEST_NATIVE 
OLE_ERROR_REQUEST_PICT 
OLE_ERROR_SERVER_BLOCKED 
OLE_ERROR_REGISTRATION 
OLE_ERROR_ALREADY_REGISTERED 
OLE_ERROR_TASK 
OLE_ERROR_OUTOFDATE 
OLE_ERROR_CANT_UPDATE_CLIENT 
OLE_ERROR_UPDATE 
OLE_ERROR_SETDATA_FORMAT 
OLE_ERROR_STATIC_FROM_OTHER_OS 
OLE_ERROR_FILE_VER 
OLE_WARN_DELETE_DATA 

Definition at line 33 of file olesvr_main.c.

34 {
35  OLE_OK,
37  OLE_BUSY,
92 } OLESTATUS;
OLESTATUS
Definition: olesvr_main.c:33

Function Documentation

◆ OleBlockServer()

OLESTATUS WINAPI OleBlockServer ( LHSERVER  hServer)

Definition at line 135 of file olesvr_main.c.

136 {
137  FIXME("(%d): stub\n",hServer);
138  return OLE_OK;
139 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ OleRegisterServer()

OLESTATUS WINAPI OleRegisterServer ( LPCSTR  svrname,
LPOLESERVER  olesvr,
LHSERVER hRet,
HINSTANCE  hinst,
OLE_SERVER_USE  osu 
)

Definition at line 164 of file olesvr_main.c.

164  {
165  FIXME("(%s,%p,%p,%p,%d): stub!\n",svrname,olesvr,hRet,hinst,osu);
166  *hRet=++OLE_current_handle;
167  return OLE_OK;
168 }
#define FIXME(fmt,...)
Definition: debug.h:111
static LONG OLE_current_handle
Definition: olesvr_main.c:130
static HINSTANCE hinst
Definition: edit.c:551

◆ OleRegisterServerDoc()

OLESTATUS WINAPI OleRegisterServerDoc ( LHSERVER  hServer,
LPCSTR  docname,
LPOLESERVERDOC  document,
LHSERVERDOC hRet 
)

Definition at line 173 of file olesvr_main.c.

176 {
177  FIXME("(%d,%s): stub\n", hServer, docname);
178  *hRet=++OLE_current_handle;
179  return OLE_OK;
180 }
#define FIXME(fmt,...)
Definition: debug.h:111
static LONG OLE_current_handle
Definition: olesvr_main.c:130

◆ OleRenameServerDoc()

OLESTATUS WINAPI OleRenameServerDoc ( LHSERVERDOC  hDoc,
LPCSTR  newName 
)

Definition at line 186 of file olesvr_main.c.

187 {
188  FIXME("(%d,%s): stub.\n",hDoc, newName);
189  return OLE_OK;
190 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ OleRevertServerDoc()

OLESTATUS WINAPI OleRevertServerDoc ( LHSERVERDOC  hDoc)

Definition at line 196 of file olesvr_main.c.

197 {
198  FIXME("(%d): stub.\n", hDoc);
199  return OLE_OK;
200 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ OleRevokeServer()

OLESTATUS WINAPI OleRevokeServer ( LHSERVER  hServer)

Definition at line 216 of file olesvr_main.c.

217 {
218  FIXME("(%d): stub.\n", hServer);
219  return OLE_OK;
220 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ OleRevokeServerDoc()

OLESTATUS WINAPI OleRevokeServerDoc ( LHSERVERDOC  hServerDoc)

Definition at line 155 of file olesvr_main.c.

156 {
157  FIXME("(%d): stub\n",hServerDoc);
158  return OLE_OK;
159 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ OleSavedServerDoc()

OLESTATUS WINAPI OleSavedServerDoc ( LHSERVERDOC  hDoc)

Definition at line 206 of file olesvr_main.c.

207 {
208  FIXME("(%d): stub.\n", hDoc);
209  return OLE_OK;
210 }
#define FIXME(fmt,...)
Definition: debug.h:111

◆ OleUnblockServer()

OLESTATUS WINAPI OleUnblockServer ( LHSERVER  hServer,
BOOL block 
)

Definition at line 144 of file olesvr_main.c.

145 {
146  FIXME("(%d): stub\n",hServer);
147  /* no more blocked messages :) */
148  *block=FALSE;
149  return OLE_OK;
150 }
static unsigned int block
Definition: xmlmemory.c:118
#define FALSE
Definition: types.h:117
#define FIXME(fmt,...)
Definition: debug.h:111

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ole  )

Variable Documentation

◆ OLE_current_handle

LONG OLE_current_handle
static

Definition at line 130 of file olesvr_main.c.

Referenced by OleRegisterServer(), and OleRegisterServerDoc().