CreateConstBuffer Method of the IFWXFirewall Interface

The CreateConstBuffer method creates a buffer object that wraps a user-supplied memory buffer.

Syntax

HRESULT CreateConstBuffer(
  [in]   BYTE* pBuffer,
  [in]   DWORD dwBufferLength,
  [out]  IFWXIOBuffer** pIOBuffer
);

Parameters

pBuffer

Pointer to the data buffer.

dwBufferLength

Length, in bytes, of the buffer pointed to by the pBuffer parameter.

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

Use only when the data is known to be a constant and the buffer memory does not have to be freed. To create a buffer for data that is not constant, use the IFWXFirewall::CreateBuffer method.

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.