Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.27 KB

File metadata and controls

46 lines (34 loc) · 1.27 KB
title IServerVirtualDeviceSet2::FreeBuffer
titlesuffix SQL Server VDI reference
description This article provides reference for the IServerVirtualDeviceSet2::FreeBuffer command.
ms.date 08/30/2019
ms.prod sql
ms.prod_service backup-restore
ms.technology backup-restore
ms.topic reference
author mashamsft
ms.author mathoma

IServerVirtualDeviceSet2::FreeBuffer (VDI)

[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]

The FreeBuffer function obtains a shared memory buffer from the virtual device set.

Syntax

HRESULT IServerVirtualDeviceSet2::FreeBuffer (
   LPVOID   pBuffer,
   UINT32   dwSize
);

Parameters

pBuffer This returns a buffer returned by IServerVirtualDeviceSet2::AllocateBuffer.

dwSize This is the size of the buffer in bytes. This does not include any prefix zone requested by the client. Any such zone is hidden from the server and there will be space available prior to when the buffer address is returned.

Return Value

Return Value Explanation
NOERROR The buffer is returned.
VD_E_INVALID A parameter was invalid.

Next steps

For more information, see the SQL Server virtual device interface reference overview.