Locks an already-running object into its running state or unlocks it from its
| BOOL fLock,
||//Flag indicating whether object is locked
| BOOL fLastUnlockCloses
||//Flag indicating whether to close object
[in] TRUE locks the object into its running state. FALSE unlocks the object
from its running state.
[in] 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.
If the value of fLock
is TRUE, the object was successfully locked; if the value of fLock
is FALSE, the object was successfully unlocked.
The object was not running.
Out of memory.
One or more arguments are invalid.
An unexpected error occurred.
Most implementations of IRunnableObject::LockRunning
is a helper function that conveniently repackages the functionality offered by IRunnableObject::LockRunning
. With the release of OLE 2.01, the implementation of OleLockRunning
was changed to call QueryInterface
, ask for IRunnableObject
, and then call IRunnableObject::LockRunning
. In other words, you can use the interface and the helper function
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages