次の方法で共有


IFWXFirewall::CreateBuffer method

Applies to: desktop apps only

The CreateBuffer method creates (allocates) a buffer object of the given size.

Syntax

HRESULT CreateBuffer(
  [in]   DWORD dwBufferLength,
  [out]  IFWXIOBuffer **pIOBuffer
);

Parameters

  • dwBufferLength [in]
    Number of bytes to allocate.

  • pIOBuffer [out]
    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 the CreateBuffer method to create an empty buffer for data that is not constant. To create a buffer for data that is constant, use the IFWXFirewall::CreateConstBuffer method.

Filters are not required to use this method. A filter may provide its own buffer objects as long as they support the IFWXIOBuffer interface.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXFirewall

IFWXFirewall::CreateConstBuffer

IFWXFirewall::CreateWindowBuffer

 

 

Build date: 7/12/2010