ILockBytes interface (objidl.h)
The ILockBytes interface is implemented on a byte array object that is backed by some physical storage, such as a disk file, global memory, or a database. It is used by a COM compound file storage object to give its root storage access to the physical device, while isolating the root storage from the details of accessing the physical storage.
The ILockBytes interface inherits from the IUnknown interface. ILockBytes also has these types of members:
The ILockBytes interface has these methods.
The Flush method ensures that any internal buffers maintained by the ILockBytes implementation are written out to the underlying physical storage.
The LockRegion method restricts access to a specified range of bytes in the byte array.
The ReadAt method reads a specified number of bytes starting at a specified offset from the beginning of the byte array object.
The SetSize method changes the size of the byte array.
The Stat method retrieves a STATSTG structure containing information for this byte array object.
The UnlockRegion method removes the access restriction on a previously locked range of bytes.
The WriteAt method writes the specified number of bytes starting at a specified offset from the beginning of the byte array.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|