1997-11-30 18:45:40 +01:00
|
|
|
/*
|
|
|
|
* OLECLI library
|
|
|
|
*
|
|
|
|
* Copyright 1995 Martin von Loewis
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* At the moment, these are only empty stubs.
|
|
|
|
*/
|
2001-07-24 01:50:18 +02:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "ole.h"
|
2000-09-27 00:20:14 +02:00
|
|
|
#include "winbase.h"
|
2000-02-10 20:39:48 +01:00
|
|
|
#include "wingdi.h"
|
2001-07-24 01:50:18 +02:00
|
|
|
|
1999-07-04 18:02:24 +02:00
|
|
|
#include "debugtools.h"
|
1999-01-23 12:54:12 +01:00
|
|
|
|
2000-02-10 20:39:48 +01:00
|
|
|
DEFAULT_DEBUG_CHANNEL(ole);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1997-11-30 18:45:40 +01:00
|
|
|
|
2000-06-20 22:59:27 +02:00
|
|
|
static LONG OLE_current_handle;
|
1997-11-30 18:45:40 +01:00
|
|
|
|
2001-02-21 00:43:43 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* OleSavedClientDoc [OLECLI32.45]
|
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleSavedClientDoc(LHCLIENTDOC hDoc)
|
|
|
|
{
|
|
|
|
FIXME("(%ld: stub\n", hDoc);
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleSavedClientDoc [OLECLI.45]
|
2001-02-21 00:43:43 +01:00
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleSavedClientDoc16(LHCLIENTDOC hDoc)
|
|
|
|
{
|
|
|
|
FIXME("(%ld: stub\n", hDoc);
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleRegisterClientDoc [OLECLI.41]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleRegisterClientDoc16(LPCSTR classname, LPCSTR docname,
|
|
|
|
LONG reserved, LHCLIENTDOC *hRet )
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s,%s,...): stub\n",classname,docname);
|
1997-11-30 18:45:40 +01:00
|
|
|
*hRet=++OLE_current_handle;
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleRegisterClientDoc [OLECLI32.41]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
|
1997-11-30 18:45:40 +01:00
|
|
|
LONG reserved, LHCLIENTDOC *hRet )
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s,%s,...): stub\n",classname,docname);
|
1997-11-30 18:45:40 +01:00
|
|
|
*hRet=++OLE_current_handle;
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleRenameClientDoc [OLECLI.43]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleRenameClientDoc16(LHCLIENTDOC hDoc, LPCSTR newName)
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%ld,%s,...): stub\n",hDoc, newName);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleRenameClientDoc [OLECLI32.43]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
|
1997-11-30 18:45:40 +01:00
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%ld,%s,...): stub\n",hDoc, newName);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleRevokeClientDoc [OLECLI.42]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleRevokeClientDoc16(LHCLIENTDOC hServerDoc)
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%ld): stub\n",hServerDoc);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleRevokeClientDoc [OLECLI32.42]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
|
1997-11-30 18:45:40 +01:00
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%ld): stub\n",hServerDoc);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1999-03-13 13:51:19 +01:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleRevertClientDoc [OLECLI.44]
|
1999-03-13 13:51:19 +01:00
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleRevertClientDoc16(LHCLIENTDOC hServerDoc)
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%ld): stub\n", hServerDoc);
|
1999-03-13 13:51:19 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleEnumObjects [OLECLI.47]
|
1999-03-13 13:51:19 +01:00
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleEnumObjects16(LHCLIENTDOC hServerDoc, SEGPTR data)
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%ld, %04x:%04x): stub\n", hServerDoc, HIWORD(data),
|
1999-03-13 13:51:19 +01:00
|
|
|
LOWORD(data));
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleCreateLinkFromClip [OLECLI.11]
|
1999-03-13 13:51:19 +01:00
|
|
|
*/
|
2000-12-13 21:20:09 +01:00
|
|
|
OLESTATUS WINAPI OleCreateLinkFromClip16( LPCSTR name, SEGPTR olecli, LHCLIENTDOC hclientdoc,
|
|
|
|
LPCSTR xname, SEGPTR lpoleob, UINT16 render,
|
|
|
|
UINT16 clipformat )
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
|
2000-12-13 21:20:09 +01:00
|
|
|
name, HIWORD(olecli), LOWORD(olecli), hclientdoc, xname, HIWORD(lpoleob),
|
|
|
|
LOWORD(lpoleob), render, clipformat);
|
1999-03-13 13:51:19 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleCreateLinkFromClip [OLECLI32.11]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleCreateLinkFromClip(
|
1997-11-30 18:45:40 +01:00
|
|
|
LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
|
|
|
|
LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
|
|
|
|
) {
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
|
1998-03-29 21:44:57 +02:00
|
|
|
name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1999-03-13 13:51:19 +01:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleQueryLinkFromClip [OLECLI.9]
|
1999-03-13 13:51:19 +01:00
|
|
|
*/
|
2000-12-13 21:20:09 +01:00
|
|
|
OLESTATUS WINAPI OleQueryLinkFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %d, %d): stub!\n", name, render, clipformat);
|
1999-03-13 13:51:19 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleQueryLinkFromClip [OLECLI32.9]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
1999-03-13 13:51:19 +01:00
|
|
|
|
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleQueryCreateFromClip [OLECLI.10]
|
1999-03-13 13:51:19 +01:00
|
|
|
*/
|
2000-12-13 21:20:09 +01:00
|
|
|
OLESTATUS WINAPI OleQueryCreateFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %d, %d): stub!\n", name, render, clipformat);
|
1999-03-13 13:51:19 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleQueryCreateFromClip [OLECLI32.10]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-06-23 18:13:33 +02:00
|
|
|
* OleIsDcMeta [OLECLI32.60]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
2000-06-23 18:13:33 +02:00
|
|
|
BOOL WINAPI OleIsDcMeta(HDC hdc)
|
1997-11-30 18:45:40 +01:00
|
|
|
{
|
2000-06-23 18:13:33 +02:00
|
|
|
TRACE("(%04x)\n",hdc);
|
|
|
|
return GetObjectType( hdc ) == OBJ_METADC;
|
1997-11-30 18:45:40 +01:00
|
|
|
}
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleIsDcMeta [OLECLI.60]
|
1998-03-15 21:29:56 +01:00
|
|
|
*/
|
2000-06-23 18:13:33 +02:00
|
|
|
BOOL16 WINAPI OleIsDcMeta16(HDC16 hdc)
|
1998-03-15 21:29:56 +01:00
|
|
|
{
|
2000-06-23 18:13:33 +02:00
|
|
|
return OleIsDcMeta( hdc );
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleSetHostNames [OLECLI32.15]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%p,%s,%s): stub\n",oleob,name1,name2);
|
1997-11-30 18:45:40 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1999-03-13 13:51:19 +01:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleQueryType [OLECLI.14]
|
1999-03-13 13:51:19 +01:00
|
|
|
*/
|
|
|
|
OLESTATUS WINAPI OleQueryType16(LPOLEOBJECT oleob, SEGPTR xlong) {
|
2000-12-13 21:20:09 +01:00
|
|
|
FIXME("(%p, %p): stub!\n", oleob, MapSL(xlong));
|
1999-03-13 13:51:19 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleQueryType [OLECLI32.14]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleQueryType(LPOLEOBJECT oleob,LONG*xlong) {
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%p,%p): stub!\n",oleob,xlong);
|
1997-11-30 18:45:40 +01:00
|
|
|
if (!oleob)
|
|
|
|
return 0x10;
|
1999-07-04 18:02:24 +02:00
|
|
|
TRACE("Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
|
1998-03-29 21:44:57 +02:00
|
|
|
oleob->lpvtbl->QueryType,oleob,xlong);
|
1997-11-30 18:45:40 +01:00
|
|
|
return oleob->lpvtbl->QueryType(oleob,xlong);
|
|
|
|
}
|
|
|
|
|
1999-03-13 13:51:19 +01:00
|
|
|
/******************************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* OleCreateFromClip [OLECLI.12]
|
1999-03-13 13:51:19 +01:00
|
|
|
*/
|
2000-12-13 21:20:09 +01:00
|
|
|
OLESTATUS WINAPI OleCreateFromClip16( LPCSTR name, SEGPTR olecli, LHCLIENTDOC hclientdoc,
|
|
|
|
LPCSTR xname, SEGPTR lpoleob,
|
|
|
|
UINT16 render, UINT16 clipformat )
|
|
|
|
{
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
|
2000-12-13 21:20:09 +01:00
|
|
|
name, HIWORD(olecli), LOWORD(olecli), hclientdoc, xname, HIWORD(lpoleob),
|
|
|
|
LOWORD(lpoleob), render, clipformat);
|
1999-03-13 13:51:19 +01:00
|
|
|
return OLE_OK;
|
|
|
|
}
|
|
|
|
|
1998-10-11 16:21:42 +02:00
|
|
|
/******************************************************************************
|
2000-03-28 22:22:59 +02:00
|
|
|
* OleCreateFromClip [OLECLI32.12]
|
1997-11-30 18:45:40 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
OLESTATUS WINAPI OleCreateFromClip(
|
1997-11-30 18:45:40 +01:00
|
|
|
LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
|
|
|
|
LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
|
|
|
|
) {
|
1999-07-04 18:02:24 +02:00
|
|
|
FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
|
1998-03-29 21:44:57 +02:00
|
|
|
name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
|
1997-11-30 18:45:40 +01:00
|
|
|
/* clipb type, object kreieren entsprechend etc. */
|
|
|
|
return OLE_OK;
|
|
|
|
}
|
1999-01-23 12:54:12 +01:00
|
|
|
|