Microsoft Internet Security and Acceleration Server 2004 SDK

IFWXFirewall::CreateConstBuffer

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

HRESULT CreateConstBuffer(
  BYTE* pBuffer,
  DWORD dwBufferLength,
  IFWXIOBuffer** pIOBuffer
);

Parameters

pBuffer
[in] Pointer to the data buffer.
dwBufferLength
[in] Length, in bytes, of the buffer pointed to by the pBuffer parameter.
pIOBuffer
[out] Address of a variable that receives a pointer to the IFWXIOBuffer interface.

Return Values

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.