ade_userlist

Land Desktop Development ARX CPP SDK

Up a level
ade_userlist
 
 

Lists the current users.

struct resbuf*

ade_userlist();

Returns a list of user login names or NULL.

The following sample parses the resbuf returned by ade_userlist() and prints a list of user names. Then it releases the resbuf, as required.

struct resbuf* pUserListRb = NULL;
pUserListRb = ade_userlist();
if (NULL != pUserListRb) {
   while (pUserListRb != NULL) {
      pUserListRb = pUserListRb->rbnext;
      acutPrintf(
         "\nUser - %s",pUserListRb->resval);
   }
} else {
   acutPrintf(
         "\nUser list could not be created");
}
acutRelRb(pUserListRb);