RasGetBuffer (Windows CE 5.0)
This function allocates memory for sending or receiving data over the port connected to the server. A custom-scripting DLL, which is implemented by the developer, calls RasGetBuffer through a function pointer. RAS passes the function pointer through the phnRasGetBuffer parameter of the DLL's RasCustomScriptExecute function.
typedefDWORD (APIENTRY *PFNRASGETBUFFER)(PBYTE* ppBuffer, PDWORDpdwSize );
Parameters
- ppBuffer
Pointer to a pointer that receives the address of the returned buffer. - pdwSize
Pointer to a DWORD variable that, on input, contains the requested size of the buffer. On output, this variable contains the actual size of the buffer allocated.
Return Values
- ERROR_SUCCESS
The function was successful. - ERROR_BUFFER_INVALID
The pointer to the buffer passed in the ppBuffer parameter is invalid.
Remarks
The maximum buffer size that can be allocated is 1500 bytes.
The custom-scripting DLL calls RasGetBuffer through a function pointer.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Ras.h.
Link Library: Ppp.lib.
See Also
RAS Custom Scripting | RasCustomScriptExecute | RasFreeBuffer
Send Feedback on this topic to the authors