global / script privileges

Prev Next

Function Names

global privileges, script privileges

Description

global privileges provides the B4P privilege level applicable to all B4P programs.
script privileges provides the B4p privilege level for the currently running program. Under specific circumstances, the privileges for a particular program may be escalated with a dedicated activation code.

Call as: function

Restrictions

Indirect parameter passing is disabled.

Parameter count

0

Return value

TypeDescription
numeral B4P specific privileges

One of the following may be returned:

none No privileges to run B4P programs
demo Demo mode with restricted functionality
standard standard privileges for normal operation
supervisor Enhanced privileges, allows more freedom in registry access functions (Windows)
installer Enhanced privileges for program installation, used by the B4P installation program
administrator Full B4P administrator rights (not to be confused with operating system admin privileges). Will not be granted to B4P users.

Examples

    echo( global privileges() );
    echo( script privileges() );

Output

standard
standard
Try it yourself: Open LIB_Function_global_privileges.b4p in B4P_Examples.zip. Decompress before use.