IRegistryClass.CurrentUser

Syntax

CurrentUser: IRegistryKey;

Description

The CurrentUser property returns the key containing settings of the user who logged in to the system at the moment.

Example

Sub UserProc;
Var
    RegKey: IRegistryKey;
Begin
    RegKey := RegistryClass.CurrentUser;
    Debug.WriteLine(RegKey.Name);
End Sub UserProc;

After executing the example the console displays name of the key that contains settings of the user currently entered the system.

See also:

IRegistryClass