|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "msgina.h"
Go to the source code of this file.
Functions | |
| LONG | RegOpenLoggedOnHKCU (_In_opt_ HANDLE hUserToken, _In_ REGSAM samDesired, _Out_ PHKEY phkResult) |
| Opens and retrieves a handle to the HKEY_CURRENT_USER corresponding to the specified logged-on user. | |
| LONG | ReadRegSzValue (_In_ HKEY hKey, _In_ PCWSTR pszValue, _Out_ PWSTR *pValue) |
| LONG | ReadRegDwordValue (_In_ HKEY hKey, _In_ PCWSTR pszValue, _Out_ PDWORD pValue) |
| BOOL | TestTokenPrivilege (_In_opt_ HANDLE hToken, _In_ ULONG Privilege) |
| Verifies whether the specified token has the given privilege. | |
| PWSTR | DuplicateString (_In_opt_ PCWSTR Str) |
Definition at line 90 of file utils.c.
Referenced by GetPolicyDWORDValue(), GetRegistrySettings(), and OnInitSecurityDlg().
Definition at line 57 of file utils.c.
Referenced by ChooseGinaUI(), and GUILoggedOutSAS().
| LONG RegOpenLoggedOnHKCU | ( | _In_opt_ HANDLE | hUserToken, |
| _In_ REGSAM | samDesired, | ||
| _Out_ PHKEY | phkResult | ||
| ) |
Opens and retrieves a handle to the HKEY_CURRENT_USER corresponding to the specified logged-on user.
| [in] | hUserToken | Optional handle to a primary or impersonation access token that represents a logged-on user. See ImpersonateLoggedOnUser() for more information. If NULL, opens the SYSTEM's HKEY_USERS.Default (i.e. HKEY_USERS\S-1-5-18). |
| [in] | samDesired | A mask (type: REGSAM or ACCESS_MASK) that specifies the desired access rights to the key. See RegOpenCurrentUser() for more information. |
| [out] | phkResult | A pointer to a variable that receives a handle to the opened key. When the handle is no longer needed, close it with RegCloseKey(). |
Definition at line 31 of file utils.c.
Referenced by OnInitSecurityDlg(), OnShutDown(), and WlxActivateUserShell().
Verifies whether the specified token has the given privilege.
Definition at line 140 of file utils.c.
Referenced by GetAllowedShutdownOptions(), and OnInitSecurityDlg().