From e3e42985ec6a703b933096b8abc7c181d8bc0a4e Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 31 Jul 2006 16:43:50 +0100 Subject: [PATCH] ole32: Implement OleNoteObjectVisible as described by MSDN. --- dlls/ole32/ole2.c | 10 ++++++++++ dlls/ole32/ole32.spec | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index d0f4a780589..576873de38c 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -2388,6 +2388,16 @@ BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject) return running; } +/*********************************************************************** + * OleNoteObjectVisible [OLE32.@] + */ +HRESULT WINAPI OleNoteObjectVisible(LPUNKNOWN pUnknown, BOOL bVisible) +{ + TRACE("(%p, %s)\n", pUnknown, bVisible ? "TRUE" : "FALSE"); + return CoLockObjectExternal(pUnknown, bVisible, TRUE); +} + + /*********************************************************************** * OLE_FreeClipDataArray [internal] * diff --git a/dlls/ole32/ole32.spec b/dlls/ole32/ole32.spec index 87605ca8ff6..5c26b3163b9 100644 --- a/dlls/ole32/ole32.spec +++ b/dlls/ole32/ole32.spec @@ -200,7 +200,7 @@ @ stdcall OleLoadFromStream(ptr ptr ptr) @ stdcall OleLockRunning(ptr long long) @ stdcall OleMetafilePictFromIconAndLabel(long ptr ptr long) -@ stub OleNoteObjectVisible +@ stdcall OleNoteObjectVisible(ptr long) @ stdcall OleQueryCreateFromData(ptr) @ stdcall OleQueryLinkFromData(ptr) @ stdcall OleRegEnumFormatEtc(ptr long ptr)