DarwinUserListMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

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

Platforms to show: All Mac Windows Linux Cross-Platform

Back to DarwinUserListMBS class.

DarwinUserListMBS.CurrentEffectiveUserID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The effective user ID of the calling process.
Example
dim l as new DarwinUserListMBS
MsgBox "CurrentEffectiveUserID: "+str(l.CurrentEffectiveUserID)

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The real group ID of the calling process.
Example
dim l as new DarwinUserListMBS
MsgBox "CurrentGroupID: "+str(l.CurrentGroupID)

The real group ID is specified at login time.

DarwinUserListMBS.CurrentUserID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The real user ID of the calling process.
Example
dim l as new DarwinUserListMBS
MsgBox "CurrentUserID: "+str(l.CurrentUserID)

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
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 MacCF Plugin.


💬 Ask a question or report a problem