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 GetBufferAndSize method gets the actual data from the memory buffer, and the actual size (not the allocated size) of the buffer.
Syntax
HRESULT GetBufferAndSize(
  [out]  BYTE **ppBuffer,
  [out]  DWORD *pdwSize
);
Parameters
- ppBuffer [out] 
 Address of a variable that receives a pointer to the buffer.
- pdwSize [out] 
 Pointer to a DWORD variable that receives the actual size, in bytes, of the buffer.
Return value
This method can return one of these values.
- S_OK 
 The method succeeded.
- E_NOTIMPL 
 Returned if the client and server are not in the same apartment. This may happen if the filter is not an in-process server.
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