Applies to: desktop apps only
The CreateBuffer method creates (allocates) a buffer object of the given size.
HRESULT CreateBuffer( [in] DWORD dwBufferLength, [out] IFWXIOBuffer **pIOBuffer );
Number of bytes to allocate.
Address of a variable that receives a pointer to the IFWXIOBuffer interface.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
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.
Minimum supported client
Minimum supported server
|Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)|
|Forefront Threat Management Gateway (TMG) 2010|
Build date: 7/12/2010