CreateWindowBuffer Method of the IFWXFirewall Interface

The CreateWindowBuffer method creates a buffer object that represents a window inside another buffer.

Syntax

HRESULT CreateWindowBuffer(
  [in]   IFWXIOBuffer* pIOBufferOriginal,
  [in]   DWORD dwOffset,
  [in]   DWORD dwLength,
  [out]  IFWXIOBuffer** pIOBuffer
);

Parameters

pIOBufferOriginal

Pointer to the IFWXIOBuffer interface on the buffer object from which the window should be taken.

dwOffset

Offset in the original buffer of the beginning of the window.

dwLength

Length, in bytes, of the window.

pIOBuffer

Address of a variable that receives a pointer to the IFWXIOBuffer interface.

Return Value

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

This method allows you to point to a portion of a buffer, so that a portion of it can be sent.

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXFirewall


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.