Engine.CurrentUser
Specifies the user who is currently logged in.
Use this property to get or set the User object for the user who is currently logged in. If no one is currently logged in, this property returns a NULL dispatch pointer or object reference. After you obtain the User object, call the User.HasPrivilege method to determine whether the user or a user group that the user is a member of has a specific privilege. If you set the property to 0 or NULL, you log out the current user.