Partager via


GetFrameSrcAddressOffset

The GetFrameSrcAddressOffset function returns the offset of the frame's source address.

DWORD WINAPIGetFrameSrcAddressOffset(HFRAMEhFrame,
DWORDAddressType,
LPDWORDAddressLength);

Parameters

  • hFrame
    Handle to the frame.
  • AddressType
    Source address type. The parameter value can be one of the following:
    • ADDRESS_TYPE_ETHERNET
    • ADDRESS_TYPE_IP
    • ADDRESS_TYPE_IPX
    • ADDRESS_TYPE_TOKENRING
    • ADDRESS_TYPE_FDDI
    • ADDRESS_TYPE_XNS
    • ADDRESS_TYPE_VINES_IP
    • ADDRESS_TYPE_ATM
  • AddressLength
    Pointer to a DWORD, which on return, contains the length of the address, in bytes.

Return Values

If the function is successful, the return value is the offset to the source address.

If the function is unsuccessful, the return value is minus one (-1).

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.