Share via


CompareFrameSourceAddress

The CompareFrameSourceAddress function compares an address to the source address of a frame.

BOOL WINAPICompareFrameSourceAddress(HFRAMEhFrame,
LPADDRESSlpAddress);

Parameters

  • hFrame
    [in] Handle to a frame.
  • lpAddress
    [in] Pointer to an address.

Return Values

If the addresses are the same, the return value is TRUE.

If the addresses are not the same, the return value is FALSE.

Remarks

For the CompareFrameSourceAddress function to succeed, the source address type must match the type of address specified in the lpAddress parameter.

Network Monitor provides two other functions for comparing addresses: CompareFrameDestAddress and CompareAddresses. The CompareFrameDestAddress function compares a given address to the frame's destination address, and the CompareAddress function compares two given addresses.

Experts and parsers can call the CompareFrameSourceAddress 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.

See Also

CompareAddresses, CompareFrameDestAddress