Share via


SetDataSize Method of the IFWXIOBuffer Interface

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

Syntax

HRESULT SetDataSize(
  [in]  DWORD dwDataSize
);

Parameters

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

Return Value

  • 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 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXIOBuffer

Send comments about this topic to Microsoft

Build date: 6/30/2010