TWUCompareVersions
The TWUCompareVersions function compares two version numbers.
int TWUCompareVersions( DWORD dwVersionLow1, DWORD dwVersionHigh1, DWORD dwVersionLow2, DWORD dwVersionHigh2 );
Delphi version:
function TWUCompareVersions( dwVersionLow1: DWORD; dwVersionHigh1: DWORD; dwVersionLow2: DWORD; dwVersionHigh2: DWORD ): Integer;
Parameters
- dwVersionLow1
- [Input] Low-order DWORD of the first version to compare.
- dwVersionHigh1
- [Input] High-order DWORD of the first version to compare.
- dwVersionLow2
- [Input] Low-order DWORD of the second version to compare.
- dwVersionHigh2
- [Input] High-order DWORD of the second version to compare.
Return value
Returns <0 if the first version is older than the second version; 0 if equal; >0 if the first version is newer than the second version.