Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXIOBuffer::SetDataSize

The SetDataSize method sets the actual size of the memory buffer that was used.

HRESULT SetDataSize(
  DWORD dwDataSize
);

Parameters

dwDataSize
[in] The actual size, in bytes, of the buffer that was used.

Return Values

S_OK
The data was successfully appended to the buffer object.
E_INVALIDARG
Requested size is larger than the allocated size.

Remarks

The IFWXIOBuffer::SetDataSize method can be called by a filter after buffer content is manipulated directly by means of IFWXIOBuffer::GetBufferAndSize.

The IFWXIOBuffer::SetDataSize method can also be called by the Microsoft Firewall service, when a buffer is passed to the IFWXSocket::Recv method, to set the number of bytes actually received.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wspfwext.idl.

See Also

IFWXIOBuffer