Partager via


TranSend

This function sends data on the transport.

BOOL TranSend(
  TRANSPORTID id,
  LPCVOID pData,
  USHORT cbData,
  DWORD dwTimeout
);

Parameters

  • id
    [in] Valid TRANSPORTID returned from TranCreate.
  • pData
    [in] Pointer to the data to send.
  • cbData
    [in] Size of the data, in bytes, pointed to by pData.
  • dwTimeout
    [in] Specifies the amount of time, in milliseconds, before the operation should abort/fail.

Return Values

If the send is successful, TRUE is returned; otherwise, FALSE is returned.

Remarks

TranSend is called when a client wants to send a data packet on a stream registered using KITLRegisterClient. This function is called whenever the user wants to send a block of data to the device.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Kitltran.h.
Link Library: Not applicable.

See Also

TranCreate | KITLRegisterClient

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.