Skip to content

Latest commit

 

History

History
97 lines (73 loc) · 3.52 KB

nf-objidl-istream-unlockregion.md

File metadata and controls

97 lines (73 loc) · 3.52 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:objidl.IStream.UnlockRegion
IStream::UnlockRegion (objidl.h)
The UnlockRegion method removes the access restriction on a range of bytes previously restricted with IStream::LockRegion.
IStream interface [Structured Storage]
UnlockRegion method
IStream.UnlockRegion
IStream::UnlockRegion
UnlockRegion
UnlockRegion method [Structured Storage]
UnlockRegion method [Structured Storage]
IStream interface
_stg_istream_unlockregion
objidl/IStream::UnlockRegion
stg.istream_unlockregion
stg\istream_unlockregion.htm
Stg
e34c8d94-b24b-4041-b5dd-2a4ed74b01ec
12/05/2018
IStream interface [Structured Storage],UnlockRegion method, IStream.UnlockRegion, IStream::UnlockRegion, UnlockRegion, UnlockRegion method [Structured Storage], UnlockRegion method [Structured Storage],IStream interface, _stg_istream_unlockregion, objidl/IStream::UnlockRegion, stg.istream_unlockregion
objidl.h
Windows
Windows 2000 Professional [desktop apps \| UWP apps]
Windows 2000 Server [desktop apps \| UWP apps]
Objidl.idl
Uuid.lib
Ole32.dll
Windows
19H1
IStream::UnlockRegion
objidl/IStream::UnlockRegion
c++
APIRef
kbSyntax
COM
Ole32.dll
IStream.UnlockRegion

IStream::UnlockRegion

-description

The UnlockRegion method removes the access restriction on a range of bytes previously restricted with IStream::LockRegion.

-parameters

-param libOffset [in]

Specifies the byte offset for the beginning of the range.

-param cb [in]

Specifies, in bytes, the length of the range to be restricted.

-param dwLockType [in]

Specifies the access restrictions previously placed on the range.

-returns

This method can return one of these values.

Return code Description
S_OK The byte range was unlocked.
E_PENDING Asynchronous Storage only: Part or all of the stream's data is currently unavailable.
STG_E_INVALIDFUNCTION Locking is not supported at all or the specific type of lock requested is not supported.
STG_E_LOCKVIOLATION The requested unlock operation cannot be granted.
STG_E_REVERTED The object has been invalidated by a revert operation above it in the transaction tree.

-remarks

IStream::UnlockRegion unlocks a region previously locked with the IStream::LockRegion method. Locked regions must later be explicitly unlocked by calling IStream::UnlockRegion with exactly the same values for the libOffset, cb, and dwLockType parameters. The region must be unlocked before the stream is released. Two adjacent regions cannot be locked separately and then unlocked with a single unlock call.

-see-also

IStream - Compound File Implementation

IStream::LockRegion

LOCKTYPE