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. |
|
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 |
|
|
|
|
|
|
The UnlockRegion method removes the access restriction on a range of bytes previously restricted with IStream::LockRegion.
Specifies the byte offset for the beginning of the range.
Specifies, in bytes, the length of the range to be restricted.
Specifies the access restrictions previously placed on the range.
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. |
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.