MBS Plugin Documentation

Search:

Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchie

New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0

The list of the   themes,   classes,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

class DarwinUserListMBS
class, Process, MBS MacOSX Plugin (Darwin), class DarwinUserListMBS, Console safe, Plugin version: 3.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The list of users on a Mac OS X system.
Example:
// find the short user name
dim d as DarwinUserListMBS
dim u as string
dim p as DarwinUserMBS
dim uid,i,c as integer

// requires MachO target
declare function getuid lib "System" () as integer

uid=getuid

d=new DarwinUserListMBS

c=d.Count-1
for I=0 to c
p=d.User(i)
if p.UserID=uid then
MsgBox p.Name
end if
next

DarwinUserListMBS.Count as Integer
property, Process, MBS MacOSX Plugin (Darwin), class DarwinUserListMBS, Console safe, Plugin version: 3.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The number of users on this Mac OS X system.
Notes: (Read only property)
DarwinUserListMBS.CurrentEffectiveUserID as integer
method, Process, MBS MacOSX Plugin (Darwin), class DarwinUserListMBS, Console safe, Plugin version: 8.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The effective user ID of the calling process.
Notes: The real user ID is that of the user who has invoked the program. As the effective user ID gives the process additional permissions during execution of 'set-user-ID' mode processes, getuid() is used to determine the real-user-id of the calling process.
DarwinUserListMBS.CurrentGroupID as integer
method, Process, MBS MacOSX Plugin (Darwin), class DarwinUserListMBS, Console safe, Plugin version: 8.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The real group ID of the calling process.
Notes: The real group ID is specified at login time.
DarwinUserListMBS.CurrentUserID as integer
method, Process, MBS MacOSX Plugin (Darwin), class DarwinUserListMBS, Console safe, Plugin version: 8.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The real user ID of the calling process.
Notes: The real user ID is that of the user who has invoked the program. As the effective user ID gives the process additional permissions during execution of 'set-user-ID' mode processes, getuid() is used to determine the real-user-id of the calling process.
DarwinUserListMBS.User(index as integer) as DarwinUserMBS
method, Process, MBS MacOSX Plugin (Darwin), class DarwinUserListMBS, Console safe, Plugin version: 3.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the user with the given index.
Example:
// find short user name
dim d as DarwinUserListMBS
dim u as string
dim p as DarwinUserMBS
dim uid,i,c as integer

u=SystemInformationMBS.Username
d=new DarwinUserListMBS

c=d.Count-1
for I=0 to c
p=d.User(i)
if p.LongName=u then
MsgBox p.Name
end if
next

The items on this page are in the following plugins: MBS MacOSX Plugin.