[in] The number of times this packet must be sent.
Key
[in] A user-defined parameter.
Return values:
HNERR_OK
The packet has been sent successfully.
HNERR_ADAPTER_NOT_OPENED
The adapter has not been opened, see the AdpOpenAdapter function.
HNERR_COUNT_ERR
The Count parameter value must be greater than 0.
HNERR_SIZE_ERR
The PacketSize parameter value is greater than the maximum size, see the
AdpCfgGetMaxPacketSize.
HNERR_ADDR_ERR
pPacket has the wrong value (a memory reading error).
HNERR_ADAPTER_REQ_ERR
An internal driver request error.
HNERR_INVALID_HANDLE
hAdp parameter is not the HNAdapter object handle.
Description:
After the network adapter has been opened successfully by AdpOpenAdapter,
you can send a raw packet directly, without using the OS functions. This packet will be sent
asynchronously. Use OnAdpAsyncSend to assure this packet has
been sent successfully.
This function cannot work with devices recognized as atWAN. See
HNNetAdapterType.