Programming guideline of WinDom
The global variables used by WinDom are grouped in a structure.
typedef struct _APPvar {
/* Private structure which containing configuration.
* Configuration is now performed via function ApplGet/ApplSet */
void *config;
/* system information variables */
int id; /* AES application handle */
INT16 handle; /* VDI workstation desktop handle */
INT16 aeshdl; /* VDI workstation handle used by AES */
INT16 x,y,w,h; /* Size and coordinate of the desktop */
int color; /* number of available colors */
OBJECT *menu; /* address of the desktop menu */
W_COLOR *palette; /* Application palette color */
INT16 work_in[10]; /* VDI default workstation initializer */
INT16 work_out[57]; /* VDI workstation opening results */
int aes4; /* Special AES4 features (see AES4_ constants) */
int gdos; /* Gdos indicator and number of available fonts */
int avid; /* AES handle of the AV-server */
int ntree; /* Number of object trees in the loaded ressource */
char *pipe; /* a 256-buffer in global memory ready to use */
/* Private structures */
void *binding;
void *hilight;
void *mnbind;
} APPvar;
extern APPvar app;