Locks an already running object into its running state or unlocks it from its
| LPUNKNOWN pUnknown,
||//Pointer to IUnknown interface
| BOOL fLock,
||//Flag indicating whether object is locked
| BOOL fLastUnlockCloses
||//Flag indicating whether to close object
Points to an object's IUnknown
interface in order to obtain a pointer to IRunnableObject::LockRunning
TRUE locks the object into its running state. FALSE unlocks the object from
its running state.
TRUE specifies that if the connection being released is the last external lock
on the object, the object should close. FALSE specifies that the object should
remain open until closed by the user or another process.
Indicates that the object was successfully locked or unlocked.
Out of memory.
Indicates one or more arguments are invalid .
Indicates an unexpected error occurred.
function saves you the trouble of calling the IRunnableObject::LockRunning
method. You can use OleLockRunning
queries for an IRunnableObject
pointer. If successful, it returns the results of calling IRunnableObject::LockRunning
The implementation of OleLockRunning
in earlier versions of OLE differs from that described here.
For more information on using this function, see IRunnableObject::LockRunning
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages