Implementation of OleLockRunning function.

This commit is contained in:
Stephane Lussier 2000-10-12 20:40:32 +00:00 committed by Alexandre Julliard
parent e127a28166
commit ee70e92180
2 changed files with 27 additions and 8 deletions

View file

@ -828,6 +828,33 @@ HRESULT WINAPI OleSave(
}
/******************************************************************************
* OleLockRunning [OLE32.114]
*/
HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses)
{
IRunnableObject* runnable = NULL;
HRESULT hres;
TRACE("(%p,%x,%x)\n", pUnknown, fLock, fLastUnlockCloses);
hres = IUnknown_QueryInterface(pUnknown,
&IID_IRunnableObject,
(void**)&runnable);
if (SUCCEEDED(hres))
{
hres = IRunnableObject_LockRunning(runnable, fLock, fLastUnlockCloses);
IRunnableObject_Release(runnable);
return hres;
}
else
return E_INVALIDARG;
}
/**************************************************************************
* Internal methods to manage the shared OLE menu in response to the
* OLE***MenuDescriptor API

View file

@ -160,14 +160,6 @@ HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID
return S_OK;
}
/******************************************************************************
* OleLockRunning [OLE32.114]
*/
HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses)
{
FIXME("(%p,%x,%x), stub!\n", pUnknown, fLock, fLastUnlockCloses);
return S_OK;
}
/******************************************************************************
* OleGetIconOfClass [OLE32.106]