src/SeeDll/Packet32.c
/*! 
  \brief Returns information about the MAC type of an adapter.
  \param AdapterObject The adapter on which information is needed.
  \param type Pointer to a NetType structure that will be filled by the function.
  \return If the function succeeds, the return value is nonzero, otherwise the return value is zero.

  This function return the link layer and the speed (in bps) of an opened adapter.
  The LinkType field of the type parameter can have one of the following values:

  - NdisMedium802_3: Ethernet (802.3) 
  - NdisMediumWan: WAN 
  - NdisMedium802_5: Token Ring (802.5) 
  - NdisMediumFddi: FDDI 
  - NdisMediumAtm: ATM 
  - NdisMediumArcnet878_2: ARCNET (878.2) 
*/
\brief Returns information about the MAC type of an adapter.
\param AdapterObject The adapter on which information is needed.
\param type Pointer to a NetType structure that will be filled by the function.
\return If the function succeeds, the return value is nonzero, otherwise the return value is zero.

This function return the link layer and the speed (in bps) of an opened adapter.
The LinkType field of the type parameter can have one of the following values.


\ brief Returns information about the MAC type of an adapter . \ param AdapterObject The adapter on which information is needed . \ param type Pointer to a NetType structure that will be filled by the function . \ return If the function succeeds the return value is nonzero otherwise the return value is zero . This function return the link layer and the speed ( in bps ) of an opened adapter . The LinkType field of the type parameter can have one of the following values .
BOOLEAN PacketGetNetType(LPADAPTER AdapterObject, NetType *type)
{
	PADAPTER_INFO TAdInfo;
	BOOLEAN ret;	
	ODS("PacketGetNetType\n");
	WaitForSingleObject(AdaptersInfoMutex, INFINITE);
	TAdInfo = PacketFindAdInfo(AdapterObject->Name);
	if(TAdInfo != NULL)
	{
		memcpy(type, &(TAdInfo->LinkLayer), sizeof(struct NetType));
		ret = TRUE;
	}
	else
	{
		ODS("PacketGetNetType: Adapter not found\n");
		ret =  FALSE;
	}
	ReleaseMutex(AdaptersInfoMutex);
	return ret;
}
BOOLEAN PacketGetNetType ( LPADAPTER AdapterObject , NetType * type ) { PADAPTER_INFO TAdInfo ; BOOLEAN ret ; ODS ( " \n " ) ; WaitForSingleObject ( AdaptersInfoMutex , INFINITE ) ; TAdInfo = PacketFindAdInfo ( AdapterObject -> Name ) ; if ( TAdInfo != NULL ) { memcpy ( type , & ( TAdInfo -> LinkLayer ) , sizeof ( struct NetType ) ) ; ret = TRUE ; } else { ODS ( " \n " ) ; ret = FALSE ; } ReleaseMutex ( AdaptersInfoMutex ) ; return ret ; }
\brief Returns information about the MAC type of an adapter.
\ brief Returns information about the MAC type of an adapter .
// Find the PADAPTER_INFO structure associated with this adapter 
 // Copy the data
