The CreateConstBuffer method creates a buffer object that wraps a user-supplied memory buffer.
HRESULT CreateConstBuffer( [in] BYTE* pBuffer, [in] DWORD dwBufferLength, [out] IFWXIOBuffer** pIOBuffer );
Pointer to the data buffer.
Length, in bytes, of the buffer pointed to by the pBuffer parameter.
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 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.
Server | Requires Windows Server 2008. |
---|---|
Version | Requires Forefront Threat Management Gateway (TMG). |
Header |
Declared in Wspfwext.idl. |
DLL |
Requires Wspsrv.exe. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.