50#undef static_class_name
51#define static_class_name() "windoze_helper"
53#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
306bool event_poll(MSG &message)
312 if (!PeekMessage(&message,
NULL_POINTER, 0, 0, PM_REMOVE))
314 TranslateMessage(&message);
315 DispatchMessage(&message);
797char *itoa(int to_convert, char *buffer, int radix)
799 // slow implementation; may need enhancement for serious speed.
800 // ALSO: only supports base 10 and base 16 currently.
801 const char *formatter = "%d";
802 if (radix == 16) formatter = "%x";
803 isprintf printed(formatter, to_convert);
804 printed.stuff(buffer, printed.length() + 1);
829const 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";
845known_operating_systems determine_OS()
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.
static structures::version get_OS_version()
returns the operating system's version information.
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.