The GetFrameDestinationAddress function obtains the destination address of a frame.
DWORD GetFrameDestinationAddress(
HFRAME hFrame,
LPADDRESS lpAddress,
DWORD AddressType,
DWORD Flags
);
If the return value is SUCCESS, the lpAddress is valid.
Error code | Meaning |
---|---|
BHERR_SUCCESS | No problems were encountered. |
BHERR_PROTOCOL_NOT_FOUND | The specified protocol in the AddressType is invalid for the frame. |
BHERR_INVALID_HFRAME | The hFrame is invalid. |
An address type of ADDRESS_TYPE_FIND_HIGHEST is allowed. If this type is used, the API will attempt to find the IPX, XNS, IP, or VINES IP address before returning the ETHERNET, TOKENRING, or FDDI address. This is useful for protocols and environments where two netcards can be multiplexed under a single server address.