GetFrameDstAddressOffset
The GetFrameDstAddressOffset function returns the offset to the destination address of a given frame.
DWORD WINAPIGetFrameDstAddressOffset(HFRAMEhFrame,
DWORDAddressType,
LPDWORDAddressLength);
Parameters
hFrame
[in] Handle to the frame.AddressType
[in] Type of the destination address. Specify one of the following values: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
[in] Length of the destination address, in bytes.
Return Values
If the function is successful, the return value is the offset (measured in bytes) to the requested address type.
If the function is unsuccessful, the return value is minus one (-1).
Remarks
If the AddressType parameter is set to ADDRESS_TYPE_ETHERNET, the return value of the GetFrameDstAddressOffset function is always zero. The offset of an Ethernet address is always zero.
Experts and parsers can call the GetFrameDstAddressOffset 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. |