+wxString wxGetOsDescription()
+{
+ wxString strVer(_T("OS/2"));
+ ULONG ulSysInfo[QSV_MAX] = {0};
+
+ if (::DosQuerySysInfo( 1L,
+ QSV_MAX,
+ (PVOID)ulSysInfo,
+ sizeof(ULONG) * QSV_MAX
+ ) == 0L )
+ {
+ wxString ver;
+ ver.Printf( _T(" ver. %d.%d rev. %c"),
+ int(ulSysInfo[QSV_VERSION_MAJOR] / 10),
+ int(ulSysInfo[QSV_VERSION_MINOR]),
+ char(ulSysInfo[QSV_VERSION_REVISION])
+ );
+ strVer += ver;
+ }