IDirectWriterLock::HaveWriteAccess method (objidl.h)

The HaveWriteAccess method indicates whether the write lock has been taken.


HRESULT HaveWriteAccess();

Return value

This method can return one of these values.

Return code Description
S_OK The storage object is currently locked for write access.
S_FALSE The storage object is not currently locked for write access.


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