Platforms to show: All Mac Windows Linux Cross-Platform

WindowsGetProcessIntegrityLevelMBS as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method System MBS Win Plugin 10.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The function gets the integrity level of the current process.
Example
msgbox str(WindowsGetProcessIntegrityLevelMBS)

Integrity level is only available on Windows Vista and newer operating systems, thus GetProcessIntegrityLevel throws a C++ exception if it is called on systems prior to Windows Vista.

Returns the integrity level of the current process. It is usually one of these values:

SECURITY_MANDATORY_UNTRUSTED_RID = &h0Means untrusted level. It is used by processes started by the Anonymous group. Blocks most write access.
SECURITY_MANDATORY_LOW_RID = &h1000Means low integrity level. It is used by Protected Mode Internet Explorer. Blocks write acess to most objects (such as files and registry keys) on the system.
SECURITY_MANDATORY_MEDIUM_RID = &h2000Means medium integrity level. It is used by normal applications being launched while UAC is enabled.
SECURITY_MANDATORY_HIGH_RID = &h3000Means high integrity level. It is used by administrative applications launched through elevation when UAC is enabled, or normal applications if UAC is disabled and the user is an administrator.
SECURITY_MANDATORY_SYSTEM_RID = &h4000Means system integrity level. It is used by services and other system-level applications (such as Wininit, Winlogon, Smss, etc.)

Some examples using this global method:

Blog Entries

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


The biggest plugin in space...