Compartilhar via


RasFreeBuffer (Compact 2013)

3/26/2014

This function releases a memory buffer that was allocated by a previous call to RasGetBuffer. A custom-scripting DLL, which is implemented by the developer, calls RasFreeBuffer through a function pointer. RAS passes the function pointer through the phnRasFreeBuffer parameter of the DLL's RasCustomScriptExecute function.

Syntax

typedef DWORD (APIENTRY *PFNRASFREEBUFFER)(
  PBYTE pBuffer 
);

Parameters

  • pBuffer
    Pointer to the memory buffer to free. This memory must have been obtained by a previous call to RasGetBuffer.

Return Value

  • ERROR_SUCCESS
    The function completes successfully.
  • ERROR_OUT_OF_BUFFERS
    RAS cannot allocate more buffer space.

Requirements

Header

ras.h

Library

Ppp.lib

See Also

Reference

Scripting Functions
RasCustomScriptExecute
RasGetBuffer