mi32/msys.h File Reference

<mi32/msys.h> More...

#include <mi32/stddefns.h>
Include dependency graph for msys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CHILDPROCESS_DiedCoreDump   3
#define CHILDPROCESS_DiedNoCoreDump   4
#define CHILDPROCESS_ExitError   1
#define CHILDPROCESS_ExternalStop   2
#define CHILDPROCESS_Finished   0

Functions

void MsysAppCleanup ()
const char * MsysAppGetName ()
void MsysAppGetProductInfo (MISTRING &string)
void MsysAppInitialize (const char *procname, UINT32 ProductCode=0, FILEPATH *sessionpath=0)
bool MsysAppIsLite ()
void MsysAppOnExitFuncAdd (void(*pfunc)(void *), void *pdata=0)
void MsysAppOnExitFuncRemove (void(*pfunc)(void *), void *pdata=0)
void MsysAppSetName (const char *newname)
int MsysOpenReferenceDocument (const char *doctag)
ERRVALUE MsysRunAssocApp (const FILEPATH &filepath)
ERRVALUE MsysRunAssocApp (const MIUNICODE *docname)
DEPRECATED int MsysRunProcess (const MIUNICODE *progstr, void(*EndCB)(int pid, int result, void *udata)=0, void *udata=0)

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

void MsysAppCleanup (  ) 

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:
string String returned.
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
bool MsysAppIsLite (  ) 

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'
ERRVALUE MsysRunAssocApp ( const FILEPATH filepath  ) 

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:
filepath Path to file
ERRVALUE MsysRunAssocApp ( const MIUNICODE docname  ) 

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:
docname String / URL
DEPRECATED int MsysRunProcess ( const MIUNICODE progstr,
void(*)(int pid, int result, void *udata)  EndCB = 0,
void *  udata = 0 
)

Function to execute another program.

Deprecated:
Use MISYSTEM::ExecuteProcess()

Generated on Sun Oct 7 21:27:33 2012 for TNTsdk 2012 by  doxygen 1.6.1