Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IStream::LockRegion Method (Int64, Int64, Int32)

 

Restricts access to a specified range of bytes in the stream.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

void LockRegion(
	long long libOffset,
	long long cb,
	int dwLockType
)

Parameters

libOffset
Type: System::Int64

The byte offset for the beginning of the range.

cb
Type: System::Int64

The length of the range, in bytes, to restrict.

dwLockType
Type: System::Int32

The requested restrictions on accessing the range.

For more information, see the existing documentation for IStream::LockRegion in the MSDN Library.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft