IDirectWriterLock::HaveWriteAccess method (objidl.h)

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

Syntax

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.

Requirements

Requirement Value
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

IDirectWriterLock::ReleaseWriteAccess

IDirectWriterLock::WaitForWriteAccess