Packet Sniffer SDK DLL Edition

HNFileAdapter :: Properties :: FAdpSetMediumType

 Previous Next

Set network adapter type, in format of which the packets are dumped to a CAP file.

Syntax:

DWORD __stdcall FAdpSetMediumType(HANDLE hFAdp, DWORD MediumType);

Return values:

If the function succeeds the return value will be the MediumType parameter value.

Parameters:

hFAdp

[in] HNFileAdapter object handle.

MediumType

[in] Network adapter type (see HNNetAdapterType).

Description:

Use FAdpSetMediumType to set the type of network adapter in format of which the packets are dumped to the CAP file.

On a CAP file creation (see FAdpCreateFile) you should predetermine HNFileAdapter.MediumType[Set] property: its value will be stored in CAP file, that allows to detect data format for this CAP file off-line processing.

The value of this property is defined by HNNetAdapterType enumeration.

See also:HNFileAdapter, HNNetAdapterType, FAdpCreateFile, FAdpGetMediumType