@nubechecorre
It's the same way. My example uses no tags because that's what most port allocations are fine with. For example, if you just need to allocate a message port for the ReAction window.class, IExec->AllocSysObject(ASOT_PORT, NULL) is perfectly sufficient, as you can see in
one of my tutorials over at OS4depot.net.
Rigo's example uses the same function call but with tags. You'd use tags, for example, if you needed a named message port. In this case you'd do something like
(Edited accordingly, based on Thomas' post below)
IExec->AllocSysObjectTags(ASOT_PORT, ASOPORT_Name, "MyNamedPort", TAG_DONE);
And... don't forget to call IExec->FreeSysObject() when you no longer need the port!
Edited by trixie on 2013/2/26 17:21:51