RasFreeBuffer (Windows Embedded CE 6.0)
1/6/2010
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 |
Windows Embedded CE | Windows CE .NET 4.0 and later |
See Also
Reference
Scripting Functions
RasCustomScriptExecute
RasGetBuffer