Compartir a través de


RasSendBuffer (Windows CE 5.0)

Send Feedback

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.

typedef DWORD(APIENTRY *PFNRASSENDBUFFER)(HANDLEhPort,PBYTEpBuffer,PDWORDdwSize);

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 Values

  • 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Ras.h.
Link Library: Ppp.lib.

See Also

RAS Custom Scripting | RasCustomScriptExecute | RasReceiveBuffer | RasRetrieveBuffer

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.