Functions | |
EFI_STRING_ID | GetUserName (IN EFI_USER_PROFILE_HANDLE User) |
VOID | AddUserToForm (IN EFI_USER_PROFILE_HANDLE User, IN UINT16 Index, IN VOID *OpCodeHandle) |
VOID | DeleteUser (IN UINT8 UserIndex) |
VOID | SelectUserToDelete (VOID) |
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
VOID AddUserToForm | ( | IN EFI_USER_PROFILE_HANDLE | User, | |
IN UINT16 | Index, | |||
IN VOID * | OpCodeHandle | |||
) |
Add a username item in form.
[in] | User | Points to the user profile whose username is added. |
[in] | Index | The index of the user in the user name list |
[in] | OpCodeHandle | Points to container for dynamic created opcodes. |
References FORMID_USER_INFO, GetUserName(), KEY_DEL_USER, KEY_FIRST_FORM_MASK, and KEY_MODIFY_USER.
Referenced by SelectUserToDelete(), and SelectUserToModify().
VOID DeleteUser | ( | IN UINT8 | UserIndex | ) |
Delete the user specified by UserIndex in user profile database.
[in] | UserIndex | The index of user in the user name list to be deleted. |
References DeleteCredentialFromProviders(), EFI_STATUS(), FindInfoByType(), mUserManager, and UINTN().
Referenced by UserProfileManagerCallback().
EFI_STRING_ID GetUserName | ( | IN EFI_USER_PROFILE_HANDLE | User | ) |
Get the username from the specified user.
[in] | User | Handle of a user profile. |
EFI_STRING_ID | The String Id of the user's username. |
References EFI_STATUS(), PWD_PROVIDER_CALLBACK_INFO::HiiHandle, mCallbackInfo, mUserManager, TRUE, UINTN(), and USER_NAME_LENGTH.
Referenced by AddUserToForm().
VOID SelectUserToDelete | ( | VOID | ) |
Display user select form, cab select a user to delete.
References AddUserToForm(), EFI_STATUS(), FORMID_DEL_USER, gUserProfileManagerGuid, PWD_PROVIDER_CALLBACK_INFO::HiiHandle, KEY_DEL_USER, KEY_SELECT_USER, LABEL_END, LABEL_USER_DEL_FUNC, mCallbackInfo, mUserManager, and TRUE.
Referenced by UserProfileManagerCallback().