CompareAddresses function
The CompareAddresses function compares two addresses, indicating that one of the addresses is greater than, less than, or equal to the other address.
Syntax
int WINAPI CompareAddresses(
_In_ LPADDRESS lpAddress1,
_In_ LPADDRESS lpAddress2
);
Parameters
-
lpAddress1 [in]
-
Pointer to the first address.
-
lpAddress2 [in]
-
Pointer to the second address.
Return value
If the addresses are the same, the function returns zero.
If the lpAddress1 parameter specifies an address that is less than the address that the lpAddress2 parameter specifies, the return value is a negative number.
If the lpAddress1 parameter specifies an address that is greater than the address that the lpAddress2 parameter specifies, the return value is a positive number.
Remarks
An address that is less than another address indicates a previous frame. An address that is greater than another address indicates a later frame.
Network Monitor provides two other functions, CompareFrameDestAddress and CompareFrameSourceAddress, which you can use to compare addresses. The CompareFrameDestAddress function compares a given address to the frame's destination address, and the CompareFrameSourceAddress function compares a given address to the frame's source address.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|