Microsoft Internet Security and Acceleration Server 2000

IFWXIOBuffer::ReadAt Method

This method reads a specified number of bytes starting at a specified offset from the beginning of the buffer.

HRESULT ReadAt(
  ULONG ulOffset,
  void *pv,
  ULONG cb,
  ULONG *pcbRead
);

Parameters

ulOffset
Specifies the starting point from the beginning of the buffer for reading data.
pv
Pointer to the buffer into which the buffer content is copied.
cb
Specifies the number of bytes to attempt to read from the byte buffer.
pcbRead
Pointer to a location where this method writes the actual number of bytes copied from the buffer. You can set this pointer to NULL to indicate that you are not interested in this value. In this case, this method does not provide the actual number of bytes copied.

Return Values

S_OK
The method succeeded.
E_INVALIDARG
Invalid parameter.
E_POINTER
Null pointer argument.
FWX_E_BUFFER_FULL
The buffer is full.