1995-03-02 17:33:47 +00:00
|
|
|
/*
|
|
|
|
* OLESVR library
|
|
|
|
*
|
|
|
|
* Copyright 1995 Martin von Loewis
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* At the moment, these are only empty stubs.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "windows.h"
|
|
|
|
#include "ole.h"
|
|
|
|
#include "stddebug.h"
|
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
LONG OLE_current_handle;
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* OleRegisterServer
|
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
OLESTATUS WINAPI OleRegisterServer( LPCSTR name, LPOLESERVER serverStruct,
|
|
|
|
LHSERVER *hRet, HINSTANCE16 hServer,
|
|
|
|
OLE_SERVER_USE use )
|
1995-03-02 17:33:47 +00:00
|
|
|
{
|
|
|
|
dprintf_ole(stdnimp,"OleRegisterServer:%s\n",name);
|
|
|
|
*hRet=++OLE_current_handle;
|
|
|
|
/* return OLE_ERROR_MEMORY, OLE_ERROR_PROTECT_ONLY if you want it fail*/
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* OleBlockServer
|
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
OLESTATUS WINAPI OleBlockServer(LHSERVER hServer)
|
1995-03-02 17:33:47 +00:00
|
|
|
{
|
1995-03-19 17:39:39 +00:00
|
|
|
fprintf(stdnimp,"OleBlockServer:%ld\n",hServer);
|
1995-03-02 17:33:47 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* OleUnblockServer
|
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
OLESTATUS WINAPI OleUnblockServer(LHSERVER hServer, BOOL16 *block)
|
1995-03-02 17:33:47 +00:00
|
|
|
{
|
1995-03-19 17:39:39 +00:00
|
|
|
fprintf(stdnimp,"OleUnblockServer:%ld\n",hServer);
|
1995-03-02 17:33:47 +00:00
|
|
|
/* no more blocked messages :) */
|
|
|
|
*block=FALSE;
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* OleRegisterServerDoc
|
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
OLESTATUS WINAPI OleRegisterServerDoc( LHSERVER hServer, LPCSTR docname,
|
|
|
|
LPOLESERVERDOC document,
|
|
|
|
LHSERVERDOC *hRet)
|
1995-03-02 17:33:47 +00:00
|
|
|
{
|
1995-03-19 17:39:39 +00:00
|
|
|
dprintf_ole(stdnimp,"OleRegisterServerDoc:%ld,%s\n", hServer, docname);
|
1995-03-02 17:33:47 +00:00
|
|
|
*hRet=++OLE_current_handle;
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* OleRevokeServerDoc
|
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC hServerDoc)
|
1995-03-02 17:33:47 +00:00
|
|
|
{
|
1995-03-19 17:39:39 +00:00
|
|
|
dprintf_ole(stdnimp,"OleRevokeServerDoc:%ld\n",hServerDoc);
|
1995-03-02 17:33:47 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* OleRevokeServer
|
|
|
|
*/
|
1997-08-24 16:00:30 +00:00
|
|
|
OLESTATUS WINAPI OleRevokeServer(LHSERVER hServer)
|
1995-03-02 17:33:47 +00:00
|
|
|
{
|
1995-03-19 17:39:39 +00:00
|
|
|
dprintf_ole(stdnimp,"OleRevokeServer:%ld\n",hServer);
|
1995-03-02 17:33:47 +00:00
|
|
|
return OLE_OK;
|
|
|
|
}
|