INSSBuffer::GetBuffer
Previous | Next |
INSSBuffer::GetBuffer
The GetBuffer method retrieves an allocated buffer.
Syntax
HRESULT GetBuffer( BYTE** ppdwBuffer );
Parameters
ppdwBuffer
[out] Pointer to a pointer to the allocated buffer.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Number | Description |
E_INVALIDARG | 0x80070057 | The ppdwBuffer parameter is NULL. |
Remarks
You can use the IWMSBufferAllocator interface to allocate the buffer.
Example Code
#include <windows.h> #include "wmsserver.h" // Declare variables. BYTE *pbBuffer = NULL; // Retrieve a pointer to the buffer. The pBuffer pointer // is user-defined. hr = pBuffer->GetBuffer( &pbBuffer ); if (FAILED(hr)) goto EXIT; EXIT: // TODO: Release temporary objects.
Requirements
Header: Include wmsbuffer.h, wmsserver.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.
See Also
Previous | Next |