BOOL __stdcall ReadPackets ( HANDLE hOpen, PETH_M_REQUEST pPacket );
TRUE if call was successful,
Specifies driver object open handle.
Pointer to the user allocated and initialized ETH_M_REQUEST structure.
The following fields of
ETH_M_REQUEST must be initialized:
ETH_M_REQUEST::hAdapterHandlemust be set to the interface handle (obtained via call to GetTcpipBoundAdaptersInfo). The packets will be extracted from the network interface associated packet queue. Remember that packets queued only when network interface is in filter mode.
ETH_M_REQUEST::dwPacketsNumbermust be set to a number of entries in
ETH_M_REQUEST::EthPacket[i].Buffermust point to the user allocated INTERMEDIATE_BUFFER structure
The following fields of the ETH_M_REQUEST and INTERMEDIATE_BUFFER are initialized by helper driver in case of success:
ETH_M_REQUEST::dwPacketSuccesscontains number of packets returned by driver
INTERMEDIATE_BUFFER::m_IBuffercontains Ethernet packet
INTERMEDIATE_BUFFER::m_Lengthcontains the actual length of the packet
INTERMEDIATE_BUFFER::m_Flagsis a combination of
NDIS_FLAGS_XXX(defined in ndis.h). These flags are copied from the
PACKET_FLAG_ON_SENDif packet goes from MSTCP to network interface, or
This member is a wrapper for CNdisApi::ReadPackets.