45 using namespace basis;
50 #undef static_class_name
51 #define static_class_name() "windoze_helper"
53 #define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
306 bool event_poll(MSG &message)
312 if (!PeekMessage(&message,
NULL_POINTER, 0, 0, PM_REMOVE))
314 TranslateMessage(&message);
315 DispatchMessage(&message);
829 const char *opsystem_name(known_operating_systems which)
832 case WIN_95:
return "WIN_95";
833 case WIN_NT:
return "WIN_NT";
834 case WIN_2K:
return "WIN_2K";
835 case WIN_XP:
return "WIN_XP";
836 case WIN_SRV2K3:
return "WIN_SRV2K3";
837 case WIN_VISTA:
return "WIN_VISTA";
838 case WIN_7:
return "WIN_7";
839 case WIN_8:
return "WIN_8";
840 case WIN_10:
return "WIN_10";
841 default:
return "UNKNOWN_OS";
845 known_operating_systems determine_OS()
848 version osver = application_configuration::get_OS_version();
850 if (osver.
v_revision() == VER_PLATFORM_WIN32_WINDOWS)
return WIN_95;
851 if (osver.
v_revision() == VER_PLATFORM_WIN32_NT)
return WIN_NT;
880 #undef static_class_name
a_sprintf is a specialization of astring that provides printf style support.
Holds a file's version identifier.
int v_minor() const
minor version number.
int v_major() const
major version number.
int v_revision() const
revision level.
#define NULL_POINTER
The value representing a pointer to nothing.
#define FUNCDEF(func_in)
FUNCDEF sets the name of a function (and plugs it into the callstack).
Implements an application lock to ensure only one is running at once.
The guards collection helps in testing preconditions and reporting errors.
A logger that sends to the console screen using the standard output device.
A dynamic container class that holds any kind of object via pointers.
Aids in achievement of platform independence.