ReactOS  0.4.13-dev-563-g0561610
olesvr_main.c File Reference
#include "config.h"
#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 101 of file olesvr_main.c.

◆ LHSERVERDOC

typedef LONG LHSERVERDOC

Definition at line 102 of file olesvr_main.c.

◆ LPCOLESTR16

Definition at line 103 of file olesvr_main.c.

◆ LPOLESERVER

Definition at line 114 of file olesvr_main.c.

◆ LPOLESERVERDOC

Definition at line 105 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 96 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 35 of file olesvr_main.c.

36 {
37  OLE_OK,
39  OLE_BUSY,
94 } OLESTATUS;
OLESTATUS
Definition: olesvr_main.c:35

Function Documentation

◆ OleBlockServer()

OLESTATUS WINAPI OleBlockServer ( LHSERVER  hServer)

Definition at line 137 of file olesvr_main.c.

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

◆ OleRegisterServer()

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

Definition at line 166 of file olesvr_main.c.

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

◆ OleRegisterServerDoc()

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

Definition at line 175 of file olesvr_main.c.

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

◆ OleRenameServerDoc()

OLESTATUS WINAPI OleRenameServerDoc ( LHSERVERDOC  hDoc,
LPCSTR  newName 
)

Definition at line 188 of file olesvr_main.c.

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

◆ OleRevertServerDoc()

OLESTATUS WINAPI OleRevertServerDoc ( LHSERVERDOC  hDoc)

Definition at line 198 of file olesvr_main.c.

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

◆ OleRevokeServer()

OLESTATUS WINAPI OleRevokeServer ( LHSERVER  hServer)

Definition at line 218 of file olesvr_main.c.

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

◆ OleRevokeServerDoc()

OLESTATUS WINAPI OleRevokeServerDoc ( LHSERVERDOC  hServerDoc)

Definition at line 157 of file olesvr_main.c.

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

◆ OleSavedServerDoc()

OLESTATUS WINAPI OleSavedServerDoc ( LHSERVERDOC  hDoc)

Definition at line 208 of file olesvr_main.c.

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

◆ OleUnblockServer()

OLESTATUS WINAPI OleUnblockServer ( LHSERVER  hServer,
BOOL block 
)

Definition at line 146 of file olesvr_main.c.

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

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ole  )

Variable Documentation

◆ OLE_current_handle

LONG OLE_current_handle
static

Definition at line 132 of file olesvr_main.c.

Referenced by OleRegisterServer(), and OleRegisterServerDoc().