mi32/msys.h File Reference
<mi32/msys.h>
More...
#include <mi32/stddefns.h>
Go to the source code of this file.
Detailed Description
<mi32/msys.h>
System functions
Define Documentation
| #define CHILDPROCESS_DiedCoreDump 3 |
| #define CHILDPROCESS_DiedNoCoreDump 4 |
| #define CHILDPROCESS_ExitError 1 |
| #define CHILDPROCESS_ExternalStop 2 |
| #define CHILDPROCESS_Finished 0 |
Possible "result" values passed to the EndCB of MsysRunProcess These used to be in mbfdefns.h, but that include file is no more.
Apparently Windows only uses CHILDPROCESS_Finished. The Unix platforms can get the other values
Function Documentation
Perform application cleanup prior to exit.
Calls registered OnExit functions, disconnects from RVC, etc.
| const char* MsysAppGetName |
( |
|
) |
|
Get application name.
- Returns:
- Pointer to application name. Do NOT free the pointer returned.
| void MsysAppGetProductInfo |
( |
MISTRING & |
string |
) |
|
Get descriptive information about product for use in 'Help About' dialogs.
- Parameters:
-
| void MsysAppInitialize |
( |
const char * |
procname, |
|
|
UINT32 |
ProductCode = 0, |
|
|
FILEPATH * |
sessionpath = 0 | |
|
) |
| | |
Initialize application.
- Parameters:
-
| procname | Process name for default INI and msgfile group, NULL to not set |
| ProductCode | ID of product, 0 for TNTmips |
| sessionpath | Filepath for session log, empty to determine automatically |
Determine if product is running a "lite" license.
| void MsysAppOnExitFuncAdd |
( |
void(*)(void *) |
pfunc, |
|
|
void * |
pdata = 0 | |
|
) |
| | |
Add function to be called on application exit during MsysAppCleanup().
Functions are called starting with the most recently added.
- Parameters:
-
| pdata | Pointer to function to call Optional data to passe to function |
| void MsysAppOnExitFuncRemove |
( |
void(*)(void *) |
pfunc, |
|
|
void * |
pdata = 0 | |
|
) |
| | |
Remove previously added OnExit function.
- Parameters:
-
| pdata | Pointer to function to remove Optional data, must match value used in MsysAppOnExitFuncAdd |
| void MsysAppSetName |
( |
const char * |
newname |
) |
|
Set application "name" for later retrieval by MsysAppGetName().
- Parameters:
-
| newname | New application name to set |
| int MsysOpenReferenceDocument |
( |
const char * |
doctag |
) |
|
Open 'reference' document using specified tag.
- Returns:
- Error < 0, FALSE if unrecognized tag, TRUE if valid tag. Tag must be in one of the forms: 'TNT:refman/file.pdf#NamedDestination' 'TNT:getstart/file.pdf?page=XXX' 'GETSTART:file.pdf' 'FILE:filename'
Run application "associated" with given file and pass file as parameter to it.
On systems where there is no operating system-defined association system, the associations are specified by extension in the "AppAssoc" section of tnthost.ini.
- Parameters:
-
Run application "associated" with given string / URL On systems where there is no operating system-defined association system, the associations are specified by extension in the "AppAssoc" section of tnthost.ini.
- Parameters:
-
| DEPRECATED int MsysRunProcess |
( |
const MIUNICODE * |
progstr, |
|
|
void(*)(int pid, int result, void *udata) |
EndCB = 0, |
|
|
void * |
udata = 0 | |
|
) |
| | |