次の方法で共有


RasSendBuffer (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Scripting Functions
RasCustomScriptExecute
RasReceiveBuffer
RasRetrieveBuffer

Concepts

RAS Custom Scripting