Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Windows Admin Status


Required plugins for this example: MBS Util Plugin, MBS Win Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows Admin Status

This example is the version from Sun, 17th Mar 2012.

Project "Windows Admin Status.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
EventHandler Sub Open() me.text = bool(IsWindows95MBS) End EventHandler
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
EventHandler Sub Open() me.text = bool(IsWindowsNTMBS) End EventHandler
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
EventHandler Sub Open() me.text = bool(IsWindowsAdminUserMBS) End EventHandler
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
EventHandler Sub Open() me.text = bool(WindowsIsUserInAdminGroupMBS) End EventHandler
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
EventHandler Sub Open() me.text = bool(WindowsIsApplicationRunAsAdminMBS) End EventHandler
End Control
Control StaticText10 Inherits Label
ControlInstance StaticText10 Inherits Label
End Control
Control StaticText11 Inherits Label
ControlInstance StaticText11 Inherits Label
End Control
Control StaticText12 Inherits Label
ControlInstance StaticText12 Inherits Label
EventHandler Sub Open() me.text = bool(WindowsIsProcessElevatedMBS) End EventHandler
End Control
Control StaticText13 Inherits Label
ControlInstance StaticText13 Inherits Label
EventHandler Sub Open() dim n as integer = WindowsGetProcessIntegrityLevelMBS dim s as string const SECURITY_MANDATORY_UNTRUSTED_RID = 0 const SECURITY_MANDATORY_LOW_RID = &h1000 const SECURITY_MANDATORY_MEDIUM_RID = &h2000 const SECURITY_MANDATORY_HIGH_RID = &h3000 const SECURITY_MANDATORY_SYSTEM_RID = &h4000 Select case n case SECURITY_MANDATORY_UNTRUSTED_RID s = " = untrusted" case SECURITY_MANDATORY_LOW_RID s = " = low" case SECURITY_MANDATORY_MEDIUM_RID s = " = medium" case SECURITY_MANDATORY_HIGH_RID s = " = high" case SECURITY_MANDATORY_SYSTEM_RID s = " = system" end Select me.text = hex(n)+s End EventHandler
End Control
Control StaticText14 Inherits Label
ControlInstance StaticText14 Inherits Label
End Control
Control StaticText15 Inherits Label
ControlInstance StaticText15 Inherits Label
End Control
Control StaticText16 Inherits Label
ControlInstance StaticText16 Inherits Label
EventHandler Sub Open() me.text = SystemInformationMBS.OSVersionString // needs Util Plugin part End EventHandler
End Control
Control StaticText17 Inherits Label
ControlInstance StaticText17 Inherits Label
End Control
Control StaticText18 Inherits Label
ControlInstance StaticText18 Inherits Label
EventHandler Sub Open() me.text = bool(SystemInformationMBS.isWindowsXP) // needs Util Plugin part End EventHandler
End Control
Control StaticText19 Inherits Label
ControlInstance StaticText19 Inherits Label
EventHandler Sub Open() me.text = bool(SystemInformationMBS.isWindowsVista) // needs Util Plugin part End EventHandler
End Control
Control StaticText20 Inherits Label
ControlInstance StaticText20 Inherits Label
End Control
Control StaticText21 Inherits Label
ControlInstance StaticText21 Inherits Label
End Control
Control StaticText22 Inherits Label
ControlInstance StaticText22 Inherits Label
EventHandler Sub Open() me.text = bool(SystemInformationMBS.isWindows7) // needs Util Plugin part End EventHandler
End Control
Protected Function bool(b as Boolean) As string if b then Return "yes" else Return "no" end if End Function
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

See also:

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


The biggest plugin in space...