IFillLockBytes interface
The IFillLockBytes interface enables downloading code to write data asynchronously to a structured storage byte array. When the downloading code has new data available, it calls IFillLockBytes::FillAppend or IFillLockBytes::FillAt to write the data to the byte array. An application attempting to access this data, through calls to the ILockBytes interface, can do so even as the downloader continues to make calls to IFillLockBytes. If the application attempts to access data that has not already been downloaded through a call to IFillLockBytes, then ILockBytes returns a new error, E_PENDING.
When to implement
You normally would not implement this interface. A system developer that wants to provide asynchronous storage for a protocol other than HTTP might implement IFillLockBytes as part of the transport layer.
When to use
You normally would not call this interface. Monikers or other downloading code that provide asynchronous storage use this interface to fill the byte array as data becomes available.
Members
The IFillLockBytes interface inherits from the IUnknown interface. IFillLockBytes also has these types of members:
Methods
The IFillLockBytes interface has these methods.
| Method | Description |
|---|---|
| FillAppend |
Writes a new block of bytes to end of byte array. |
| FillAt |
Writes a new block of bytes to specified location in byte array. |
| SetFillSize |
Sets expected size of byte array. |
| Terminate |
Notifies byte array wrapper of successful or unsuccessful termination of download. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
Library |
|
|
DLL |
|
|
IID |
IID_IFillLockBytes is defined as 99CAF010-415E-11CF-8814-00AA00B569F5 |
See also