Function winsafe::CoLockObjectExternal
source · pub fn CoLockObjectExternal<T>(
obj: &T
) -> HrResult<CoLockObjectExternalGuard<'_, T>>where
T: ole_IUnknown,
Available on crate feature
ole
only.Expand description
CoLockObjectExternal
function.
Note that this function will lock the COM object, returning a
CoLockObjectExternalGuard
. The
unlocking is automatically performed by the guard when it goes out of scope.