function SyncSend(pPacket: Pointer;
PacketSize: DWORD): DWORD;
Parameters:
pPacket
[in] A pointer to a packet.
PacketSize
[in] The packet size.
Return values:
HNERR_OK
The packet has been sent successfully.
HNERR_ADAPTER_NOT_OPENED
The adapter has not been opened, see the OpenAdapter method.
HNERR_SIZE_ERR
The PacketSize parameter value is greater than the maximum size, see
MaxPacketSize.
HNERR_ADAPTER_REQ_ERR
An internal driver request error.
Description:
After the network adapter has been opened successfully by OpenAdapter,
you can send a raw packet directly, without using the OS functions. This packet will be sent
synchronously.
This method cannot work with the devices recognized as atWAN. See
HNNetAdapterType.