Defines | |
| #define | MYSERVER_KB(x) (x << 10) |
| #define | MYSERVER_MB(x) (x << 20) |
| #define | MYSERVER_SEC(x) (x * 1000) |
| #define | OS_LINUX 100 |
| #define | OS_WINDOWS_2000 2 |
| #define | OS_WINDOWS_9X 1 |
| #define | OS_WINDOWS_NT3 3 |
| #define | OS_WINDOWS_XP 4 |
Functions | |
| int | endPrintError () |
| int | freecwdBuffer () |
| u_long | getCPUCount () |
| int | getdefaultwd (string &) |
| char * | getdefaultwd (char *dwd, int maxlen) |
| int | getdefaultwdlen () |
| int | getOSVersion () |
| u_long | getTicks () |
| int | preparePrintError () |
| int | setcwd (const char *cwd) |
| int | setcwdBuffer () |
|
|
Macros to do simple transformations. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the text color to white on black. Return 0 on success. |
|
|
free the cwd buffer. |
|
|
Returns the number of processors available on the local machine. |
|
|
Get the defult directory using a string as output. Return 0 on success.
|
|
||||||||||||
|
Get the default working directory (Where is the main executable).
|
|
|
Get the default working directory length. |
|
|
Returns the version of the operating system. Return 0 on fails. |
|
|
Return the ticks count. Used to check time variations. Return 0 on errors. |
|
|
Set the text color to red on black. Return 0 on success. |
|
|
Set the current working directory. Returns Zero if successful.
|
|
|
Save the current working directory. Return -1 on fails. Return 0 on success. |
1.3.9.1