Message Board
Message Board > Fenix / Bennu / Gemix / DIV > Return process type from process id |
January 20, 2008, 17:15 | |
yonni
None 420 posts |
Ok, this feels so stupid there must be an easy answer and I can't believe I can't see one. Is there a function that returns a processes type from the processid? I just need a statement that goes a bit like: Code: if(get_type(father)) /*type conditional statements*/ end but there doesn't appear to be a function equivalent to get_type. Hope you can help ____________ |
# |
January 20, 2008, 17:51 | |
Fiona
games are terrible -9616558 posts |
isn't it like if(TYPE my_id == process_name)?
____________ laffo |
# |
January 20, 2008, 18:35 | |
yonni
None 420 posts |
No, that just makes the compiler complain that process_name isn't an identifier [Edited on January 20, 2008 by yonni] ____________ |
# |
January 20, 2008, 20:29 | |
Sandman
F3n!x0r 1194 posts |
To check if the processID procID is of the processType with name MY_PROCNAME: Code: if(procID.reserved.process_type == type MY_PROCNAME)
end ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
January 20, 2008, 23:04 | |
yonni
None 420 posts |
Ahhh, I thought there might be a reserved variable or something for it, thanks sandman
____________ |
# |
January 21, 2008, 00:16 | |
Fiona
games are terrible -9616558 posts |
Quoting Sandman: To check if the processID procID is of the processType with name MY_PROCNAME: Code: if(procID.reserved.process_type == type MY_PROCNAME) end If you wear 3D glasses that's what my post says...! ____________ laffo |
# |
January 21, 2008, 00:48 | |
Sandman
F3n!x0r 1194 posts |
I see it now, Fiona, you were right all along. * takes off 3D glasses Also, you might wonder what other members there are in the struct reserved: http://fenixdocs.com/index.php/Reserved ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
January 23, 2008, 01:54 | |
Moogle
Enterprise Edition 239 posts |
I wondered but I checked and now I am in the know! Also hello, and cool to see that the forum is still used ____________ I am Moogle and I approve this message. Quoting (. )( .) in the Bugs topic: Everytime I login the threads with new posts are by Dennis.
|
# |
January 23, 2008, 10:17 | |
Fiona
games are terrible -9616558 posts |
Moooooogeees... *hugs*
____________ laffo |
# |
Message Board > Fenix / Bennu / Gemix / DIV > Return process type from process id