Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: desktop apps only
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 [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 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
| 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
Build date: 7/12/2010