[This is preliminary documentation and subject to change.]
Obtains exclusive write access to a storage object.
HRESULT WaitForWriteAccess(
DWORD dwTimeout //Specifies a timeout for blocking
);
When a storage is opened in direct mode (STGM_DIRECT) with the STGM_READWRITE|STGM_SHARE_DENY_WRITE, you can call this method to obtain exclusive write access to the storage.
This method returns immediately if no readers have the storage open. If the storage is still open for reading, this method blocks for the specified dwTimeout or until the current readers close the storage.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in objidl.h.
IDirectWriterLock::ReleaseWriteAccess, IDirectWriterLock::HaveWriteAccess