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.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXIOBuffer


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.