src/SeeDll/Packet32.c
/*! 
  \brief Initializes a _PACKET structure.
  \param lpPacket The structure to initialize. 
  \param Buffer A pointer to a user-allocated buffer that will contain the captured data.
  \param Length the length of the buffer. This is the maximum buffer size that will be 
   transferred from the driver to the application using a single read.

  \note the size of the buffer associated with the PACKET structure is a parameter that can sensibly 
  influence the performance of the capture process, since this buffer will contain the packets received
  from the the driver. The driver is able to return several packets using a single read call 
  (see the PacketReceivePacket() function for details), and the number of packets transferable to the 
  application in a call is limited only by the size of the buffer associated with the PACKET structure
  passed to PacketReceivePacket(). Therefore setting a big buffer with PacketInitPacket can noticeably 
  decrease the number of system calls, reducing the impcat of the capture process on the processor.
*/
\brief Initializes a _PACKET structure.
\param lpPacket The structure to initialize.
\param Buffer A pointer to a user-allocated buffer that will contain the captured data.
\param Length the length of the buffer. This is the maximum buffer size that will be
transferred from the driver to the application using a single read.

\note the size of the buffer associated with the PACKET structure is a parameter that can sensibly
influence the performance of the capture process, since this buffer will contain the packets received
from the the driver. The driver is able to return several packets using a single read call
function for details), and the number of packets transferable to the
application in a call is limited only by the size of the buffer associated with the PACKET structure
passed to PacketReceivePacket(). Therefore setting a big buffer with PacketInitPacket can noticeably
decrease the number of system calls, reducing the impcat of the capture process on the processor.
\ brief Initializes a _PACKET structure . \ param lpPacket The structure to initialize . \ param Buffer A pointer to a user - allocated buffer that will contain the captured data . \ param Length the length of the buffer . This is the maximum buffer size that will be transferred from the driver to the application using a single read . \ note the size of the buffer associated with the PACKET structure is a parameter that can sensibly influence the performance of the capture process since this buffer will contain the packets received from the the driver . The driver is able to return several packets using a single read call function for details ) and the number of packets transferable to the application in a call is limited only by the size of the buffer associated with the PACKET structure passed to PacketReceivePacket () . Therefore setting a big buffer with PacketInitPacket can noticeably decrease the number of system calls reducing the impcat of the capture process on the processor .
VOID PacketInitPacket(LPPACKET lpPacket,PVOID Buffer,UINT Length)
{
    lpPacket->Buffer = Buffer;
    lpPacket->Length = Length;
	lpPacket->ulBytesReceived = 0;
	lpPacket->bIoComplete = FALSE;
}
VOID PacketInitPacket ( LPPACKET lpPacket , PVOID Buffer , UINT Length ) { lpPacket -> Buffer = Buffer ; lpPacket -> Length = Length ; lpPacket -> ulBytesReceived = 0 ; lpPacket -> bIoComplete = FALSE ; }
\brief Initializes a _PACKET structure.
\ brief Initializes a _PACKET structure .