Description |
XProcess is the parent class for XApplication and XThread, you cannot create an instance
of XProcess, you have to chose one the child classes. This classes should only be used if you need
window-management.
XProcess and derived is killed automaticaly if you use windows and/or dialogs: it counts the opened dialogs
and windows, if the last window/dialog is closed the thread/application is terminated. If you dont open dialogs
or windows you need to terminate the application/thread yourself.
QueryForQuit |
BOOL canTerminate return TRUE if the process can be terminated, otherwise return FALSE. If you return FALSE a possible system shutdown is canceled.
If the user try to close this prcess with the tasklist or a system shutdown is requested this function is called automaticaly. If you want to make a security-check (for example with XMessageBox), override this method.
Start |
After a process (XApplication/XThread) is constructed und you have setup your code, call Start() to make the process work.
Terminate |
Terminate a running process
Beep |
LONG frequency | frequency in hertz |
LONG duration | duration in milliseconds |
Make some noise
ExecuteProg |
char * path | path/file to execute |
char * args | arguments (can be NULL) |
char * environment | enviroment for the program (can be NULL) |
ULONG flags | flags (see DosExecPgm) |
LONG * buffer | buffer for return-code of the program |
LONG return-code from the system
Executes a program
ScanEnvironment |
char * valueToSearch | the name of the value (eg. PATH) |
XString * buffer | buffer to hold the data |
BOOL success
Scan a value from the environment ( SET-entry of the config.sys )
Sleep |
LONG duration time to sleep in milliseconds
The current process is suspended for the given time