home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ST-Computer Leser-CD 1999 January
/
STC_CD_01_1999.iso
/
heft1298
/
ins_list.txt
Wrap
Text File
|
2000-01-08
|
871b
|
49 lines
Insider-Artikel Heft 12/98:
Listing 1
=========
int appl_xgetinfo(int type, int *out1, int *out2, int *out3, int *out4)
{
static int has_agi = ((_GemParBlk.global[0] == 0x0399
&& get_cookie('MagX',NULL))
|| (_GemParBlk.global[0] >= 0x0400)
|| (appl_find("?AGI") >= 0));
return(has_agi ? appl_getinfo(type,out1,out2,out3,out4) : 0);
}
Listing 2
=========
int out1,out2,out3,out4;
int has_magic_objects = 0;
if (appl_xgetinfo(13,&out1,&out2,&out3,&out4))
{
has_magic_objects = (out4 & 0x0004);
}
if (has_magic_objects)
{
/* MagiC-kompatible Objekte vorhanden */
}
Listing 3
=========
int out1,out2;
if (objc_sysvar(0,MENUCOL,0,0,&out1,&out2))
{
/* in out1 steht der Farbindex *
* der Menü-Hintergrundfarbe */
}