wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Utility/GetKernelVerStr

Version 3 (modified by Don Wilson, 12 years ago) ( diff )

--

GetKernelVerStr

Gets the OS (kernel) version

string GetKernelVerStr();

Parameters

Function does not accept any parameters.

Return Value

Returns string representation of the full OS version such as 2.6.17.7-2010.08.04

Remarks

Examples

string str = GetKernelVerStr();
DisplayText(0, 0, str);
string ver = GetKernelVerStr();
if(ver >= "2.6.26")
{
   DisplayText(0, 0, "New OS");
}
else
{
   DisplayText(0, 0, "Old OS");
}

See Also

Note: See TracWiki for help on using the wiki.