Restricts access to a specified range of bytes in the stream.
libOffset The byte offset for the beginning of the range. cb The length of the range, in bytes, to restrict. dwLockType The requested restrictions on accessing the range.
For more information, please see the existing documentation for IStream::LockRegion in the MSDN library.