GetBufferAndSize Method of the IFWXIOBuffer Interface

The GetBufferAndSize method gets the actual data from the memory buffer, and the actual size (not the allocated size) of the buffer.

Syntax

HRESULT GetBufferAndSize(
  [out]  BYTE** ppBuffer,
  [out]  DWORD* pdwSize
);

Parameters

ppBuffer

Address of a variable that receives a pointer to the buffer.

pdwSize

Pointer to a DWORD variable that receives the actual size, in bytes, of the buffer.

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.

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.