IDirectWriterLock::ReleaseWriteAccess method (objidl.h)

The ReleaseWriteAccess method releases the write lock previously obtained.


HRESULT ReleaseWriteAccess();

Return value

This method can return one of these values.

Return code Description
S_OK The write lock was successfully released.


The writer calls this method to release exclusive access to the storage object previously taken by calling IDirectWriterLock::WaitForWriteAccess.

After the writer calls this method, it is safe to allow readers to reopen the storage again until the next call to IDirectWriterLock::WaitForWriteAccess.


Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header objidl.h
Library Uuid.lib
DLL Ole32.dll

See also