Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.29 KB

File metadata and controls

30 lines (18 loc) · 1.29 KB

UnlockRegion method

Project: Stream Extension Classes

Unit: PJIStreams

Classes: TPJIStreamWrapper, TPJHandleIStreamWrapper, TPJFileIStream

Applies to: ~>3.0

function UnlockRegion(libOffset: Largeint; cb: Largeint;
  dwLockType: Longint): HResult; virtual; stdcall;

Description

Does nothing.

This method may remove the access restriction on a range of bytes previously restricted with LockRegion. It is optional whether support is provided for region locking -- this implementation does not do so. A do-nothing stub method is provided that returns the value required by the Microsoft documentation.

Parameters:

  • libOffset -- Byte offset of the beginning of the restricted range to be unlocked. Ignored.
  • cb -- Length of the restricted range in bytes. Ignored.
  • dwLockType -- Access restrictions previously placed on the range. Valid values are from the LOCKTYPE. Ignored.

Returns:

  • STG_E_INVALIDFUNCTION in all cases.