SendToBuffer Method of the IFWXIOBuffer Interface

The SendToBuffer method copies a specified number of bytes starting at a specified offset from the beginning of the buffer to the given destination buffer.

Syntax

HRESULT SendToBuffer(
  [in]   IFWXIOBuffer* pDestinationBuffer,
  [in]   ULONG ulOffset,
  [in]   ULONG cb,
  [out]  ULONG* pcbCopied
);

Parameters

pDestinationBuffer

Buffer to which the data will be copied.

ulOffset

Specifies the starting point from the beginning of the buffer for reading data.

cb

Specifies the number of bytes to attempt to copy to the destination buffer.

pcbCopied

Pointer to a ULONG that on return receives the actual number of bytes copied to the destination buffer object.

Return Value

S_OK

The method succeeded.

E_NOTIMPL

Returned if the client and server are not in the same apartment. This may happen if the filter is not an in-process server.

FWX_E_BUFFERFULL

The destination buffer does not have enough room to receive all the data. The pcbCopied parameter will contain the number of bytes that were actually copied.

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.