src/SeeDll/Packet32.c
/*! 
  \brief Allocates a _PACKET structure.
  \return On succeess, the return value is the pointer to a _PACKET structure otherwise the 
   return value is NULL.

  The structure returned will be passed to the PacketReceivePacket() function to receive the
  packets from the driver.

  \warning The Buffer field of the _PACKET structure is not set by this function. 
  The buffer \b must be allocated by the application, and associated to the PACKET structure 
  with a call to PacketInitPacket.
*/
\brief Allocates a _PACKET structure.
\return On succeess, the return value is the pointer to a _PACKET structure otherwise the
return value is NULL.

The structure returned will be passed to the PacketReceivePacket() function to receive the
packets from the driver.

\warning The Buffer field of the _PACKET structure is not set by this function.
The buffer \b must be allocated by the application, and associated to the PACKET structure
with a call to PacketInitPacket.
\ brief Allocates a _PACKET structure . \ return On succeess the return value is the pointer to a _PACKET structure otherwise the return value is NULL . The structure returned will be passed to the PacketReceivePacket () function to receive the packets from the driver . \ warning The Buffer field of the _PACKET structure is not set by this function . The buffer \ b must be allocated by the application and associated to the PACKET structure with a call to PacketInitPacket .
LPPACKET PacketAllocatePacket(void)
{
    LPPACKET    lpPacket;
    lpPacket=(LPPACKET)GlobalAllocPtr(GMEM_MOVEABLE | GMEM_ZEROINIT,sizeof(PACKET));
    if (lpPacket==NULL)
    {
        ODS("PacketAllocatePacket: GlobalAlloc Failed\n");
        return NULL;
    }
    return lpPacket;
}
LPPACKET PacketAllocatePacket ( void ) { LPPACKET lpPacket ; lpPacket = ( LPPACKET ) GlobalAllocPtr ( GMEM_MOVEABLE | GMEM_ZEROINIT , sizeof ( PACKET ) ) ; if ( lpPacket == NULL ) { ODS ( " \n " ) ; return NULL ; } return lpPacket ; }
\brief Allocates a _PACKET structure.
\ brief Allocates a _PACKET structure .