IFWXIOBuffer::SetDataSize method

Applies to: desktop apps only

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

Syntax

HRESULT SetDataSize(
  [in]  DWORD dwDataSize
);

Parameters

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

Return value

This method can return one of these 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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXIOBuffer

 

 

Build date: 7/12/2010