Data Structures | |
struct | _appvar |
struct | APPvar |
the application descriptor structure. More... | |
Typedefs | |
typedef _appvar | APPvar |
Functions | |
APPvar * | mt_ApplInit (void) |
AES and WinDom initialization. | |
int | mt_ApplExit (APPvar *app) |
Terminate a WinDom and AES session. | |
int | mt_ApplGet (APPvar *app, int mode, short *v1, short *v2, short *v3, short *v4) |
Get application parameters. | |
int | mt_ApplSet (APPvar *app, int mode, short v1, short v2, short v3, short v4) |
Set application parameters. | |
int | mt_ApplName (APPvar *app, char *name, int handle) |
Identify the name of a GEM process. | |
int | mt_ApplWrite (APPvar *app, int to, int msg, int b3, int b4, int b5, int b6, int b7) |
Send a message to a GEM process. | |
int | mt_ApplControl (APPvar *app, int ap_cid, int ap_cwhat, void *ap_cout) |
Control of GEM process. | |
int | ApplInit (void) |
see mt_ApplInit() | |
int | ApplExit (void) |
see mt_ApplExit() |
int ApplExit | ( | void | ) |
see mt_ApplExit()
int ApplInit | ( | void | ) |
see mt_ApplInit()
int mt_ApplControl | ( | APPvar * | app, | |
int | ap_cid, | |||
int | ap_cwhat, | |||
void * | ap_cout | |||
) |
Control of GEM process.
app | application descriptor, | |
ap_cid | identifier of application targetted, | |
ap_cwhat | action to perform. | |
ap_cout | pointer for the return value if any. |
If the AES supports mt_appl_control(), then mt_appl_control with the given parameters is invoked.
If Magic is detected, as Magic doesn't support mt_appl_control(), we try to emulate this function thanks to the Magic specific message SM_M_SPECIAL. At the moment, only the following actions (parameter ap_cwhat) are emulated :
int mt_ApplExit | ( | APPvar * | app | ) |
Terminate a WinDom and AES session.
app | application descriptor. |
int mt_ApplGet | ( | APPvar * | app, | |
int | mode, | |||
short * | v1, | |||
short * | v2, | |||
short * | v3, | |||
short * | v4 | |||
) |
Get application parameters.
app | application descriptor, | |
mode,v1,v2,v3,v4 | similar to mt_ApplSet(). |
Usage of v1, v2, v3 and v4 depends on mode value. For details about this mode, read manual of _config.
The NULL value can be used if a parameter has not to be read
APPvar* mt_ApplInit | ( | void | ) |
AES and WinDom initialization.
int mt_ApplName | ( | APPvar * | app, | |
char * | name, | |||
int | id | |||
) |
Identify the name of a GEM process.
app | application descriptor, | |
name | name of the process (a 8-byte buffer, AES formatted) | |
id | AES handle of the process, |
appl_find()
int mt_ApplSet | ( | APPvar * | app, | |
int | mode, | |||
short | v1, | |||
short | v2, | |||
short | v3, | |||
short | v4 | |||
) |
Set application parameters.
app | application descriptor | |
mode,v1,v2,v3,v4 | see below. |
Refer to the documentation of the _config private stucture for details about the configuration and possible values of mode, v1, v2, v3 and v4.
The special DEFVAL value does not change the value. For example :
// Set only the color of string objects mt_ApplSet( app, APS_STRSTYLE, DEFVAL, DEFVAL, RED);
int mt_ApplWrite | ( | APPvar * | app, | |
int | to, | |||
int | msg, | |||
int | b3, | |||
int | b4, | |||
int | b5, | |||
int | b6, | |||
int | b7 | |||
) |
Send a message to a GEM process.
app | application descriptor, | |
to | AES id of the targeted process, | |
msg | message number to send, | |
b3,b4,b5,b6,b7 | 5 parameters filling words 3 to 7 of the AES message pipe. |
Example:
void ex_vastart( APPvar *app) { ApplWrite( id_target, VA_START, ADR(strcpy(app->pipe,"C:\\NEWDESK.INF")), 0, 0); }