MacTypeToAddressType

The MacTypeToAddressType function converts a given MAC type to an address type.

DWORD WINAPIMacTypeToAddressType(DWORDMacType);

Parameters

  • MacType
    [in] MAC type to be converted. Specify one of the following values:

    MAC_TYPE_ETHERNET MAC_TYPE_TOKENRING MAC_TYPE_FDDI

Return Values

If the function is successful, the return value is one of the following address types.

ADDRESS_TYPE_ETHERNET ADDRESS_TYPE_TOKENRING ADDRESS_TYPE_FDDI

If the function is unsuccessful, the MAC type is unknown, the return value is -1.

Remarks

Experts and parsers can call the MacTypeToAddressType function.

Requirements

Client Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Header

Declared in Netmon.h.

Library

Link to Nmapi.lib.

DLL Requires Nmapi.dll.