Functions

AppSecInc::Version Namespace Reference

Win32 version support functions. More...

Functions

bool IsWithinBounds (const std::wstring &version, const std::wstring &min, const std::wstring &max=L"")
 Check whether a dotted version string is within min/max bounds.
int Compare (const std::wstring &left, const std::wstring &right)
 Compare the two version strings.

Detailed Description

Win32 version support functions.


Function Documentation

int AppSecInc::Version::Compare ( const std::wstring &  left,
const std::wstring &  right 
)

Compare the two version strings.

Returns:
-1 if left is less than right
0 if left and right are equal
1 if left is larger than right
bool AppSecInc::Version::IsWithinBounds ( const std::wstring &  version,
const std::wstring &  min,
const std::wstring &  max = L"" 
)

Check whether a dotted version string is within min/max bounds.

Returns:
true if version within bounds, false otherwise


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com