Share via


RasSendBuffer (Compact 2013)

3/26/2014

This function sends data to the server over the specified port. A custom-scripting DLL, which is implemented by the developer, calls RasSendBuffer through a function pointer. RAS passes the function pointer through the phnRasSendBuffer parameter of the DLL's RasCustomScriptExecute function.

Syntax

typedef DWORD (APIENTRY *PFNRASSENDBUFFER)(
  HANDLE hPort,
  PBYTE pBuffer,
  PDWORD dwSize
);

Parameters

  • hPort
    Handle to the port on which to send the data. This handle should be the handle passed in by RAS as the first parameter of the RasCustomScriptExecute function.
  • pBuffer
    Pointer to a buffer of data to send over the port specified by the hPort parameter. Obtain this buffer using RasGetBuffer function.
  • dwSize
    Specifies the size of the buffer pointed to by the pBuffer parameter.

Return Value

  • ERROR_SUCCESS
    The function completes successfully.
  • ERROR_BUFFER_INVALID
    The pointer to the buffer passed in the pBuffer parameter is invalid.
  • ERROR_INVALID_PORT_HANDLE
    The handle specified by the hPort parameter is invalid.

Requirements

Header

ras.h

Library

Ppp.lib

See Also

Reference

Scripting Functions
RasCustomScriptExecute
RasReceiveBuffer
RasRetrieveBuffer