Author: ekohl
Date: Sat Jul 31 09:06:42 2010
New Revision: 48377
URL:
http://svn.reactos.org/svn/reactos?rev=48377&view=rev
Log:
[LSASRV]
Replace hard-coded privilege names by privilege names from the PSDK.
Modified:
trunk/reactos/dll/win32/lsasrv/privileges.c
Modified: trunk/reactos/dll/win32/lsasrv/privileges.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/privilege…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/privileges.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/privileges.c [iso-8859-1] Sat Jul 31 09:06:42 2010
@@ -20,35 +20,35 @@
static const PRIVILEGE_DATA WellKnownPrivileges[] =
{
- {{SE_CREATE_TOKEN_PRIVILEGE, 0}, L"SeCreateTokenPrivilege"},
- {{SE_ASSIGNPRIMARYTOKEN_PRIVILEGE, 0}, L"SeAssignPrimaryTokenPrivilege"},
- {{SE_LOCK_MEMORY_PRIVILEGE, 0}, L"SeLockMemoryPrivilege"},
- {{SE_INCREASE_QUOTA_PRIVILEGE, 0}, L"SeIncreaseQuotaPrivilege"},
- {{SE_MACHINE_ACCOUNT_PRIVILEGE, 0}, L"SeMachineAccountPrivilege"},
- {{SE_TCB_PRIVILEGE, 0}, L"SeTcbPrivilege"},
- {{SE_SECURITY_PRIVILEGE, 0}, L"SeSecurityPrivilege"},
- {{SE_TAKE_OWNERSHIP_PRIVILEGE, 0}, L"SeTakeOwnershipPrivilege"},
- {{SE_LOAD_DRIVER_PRIVILEGE, 0}, L"SeLoadDriverPrivilege"},
- {{SE_SYSTEM_PROFILE_PRIVILEGE, 0}, L"SeSystemProfilePrivilege"},
- {{SE_SYSTEMTIME_PRIVILEGE, 0}, L"SeSystemtimePrivilege"},
- {{SE_PROF_SINGLE_PROCESS_PRIVILEGE, 0},
L"SeProfileSingleProcessPrivilege"},
- {{SE_INC_BASE_PRIORITY_PRIVILEGE, 0}, L"SeIncreaseBasePriorityPrivilege"},
- {{SE_CREATE_PAGEFILE_PRIVILEGE, 0}, L"SeCreatePagefilePrivilege"},
- {{SE_CREATE_PERMANENT_PRIVILEGE, 0}, L"SeCreatePermanentPrivilege"},
- {{SE_BACKUP_PRIVILEGE, 0}, L"SeBackupPrivilege"},
- {{SE_RESTORE_PRIVILEGE, 0}, L"SeRestorePrivilege"},
- {{SE_SHUTDOWN_PRIVILEGE, 0}, L"SeShutdownPrivilege"},
- {{SE_DEBUG_PRIVILEGE, 0}, L"SeDebugPrivilege"},
- {{SE_AUDIT_PRIVILEGE, 0}, L"SeAuditPrivilege"},
- {{SE_SYSTEM_ENVIRONMENT_PRIVILEGE, 0}, L"SeSystemEnvironmentPrivilege"},
- {{SE_CHANGE_NOTIFY_PRIVILEGE, 0}, L"SeChangeNotifyPrivilege"},
- {{SE_REMOTE_SHUTDOWN_PRIVILEGE, 0}, L"SeRemoteShutdownPrivilege"},
- {{SE_UNDOCK_PRIVILEGE, 0}, L"SeUndockPrivilege"},
- {{SE_SYNC_AGENT_PRIVILEGE, 0}, L"SeSyncAgentPrivilege"},
- {{SE_ENABLE_DELEGATION_PRIVILEGE, 0}, L"SeEnableDelegationPrivilege"},
- {{SE_MANAGE_VOLUME_PRIVILEGE, 0}, L"SeManageVolumePrivilege"},
- {{SE_IMPERSONATE_PRIVILEGE, 0}, L"SeImpersonatePrivilege"},
- {{SE_CREATE_GLOBAL_PRIVILEGE, 0}, L"SeCreateGlobalPrivilege"}
+ {{SE_CREATE_TOKEN_PRIVILEGE, 0}, SE_CREATE_TOKEN_NAME},
+ {{SE_ASSIGNPRIMARYTOKEN_PRIVILEGE, 0}, SE_ASSIGNPRIMARYTOKEN_NAME},
+ {{SE_LOCK_MEMORY_PRIVILEGE, 0}, SE_LOCK_MEMORY_NAME},
+ {{SE_INCREASE_QUOTA_PRIVILEGE, 0}, SE_INCREASE_QUOTA_NAME},
+ {{SE_MACHINE_ACCOUNT_PRIVILEGE, 0}, SE_MACHINE_ACCOUNT_NAME},
+ {{SE_TCB_PRIVILEGE, 0}, SE_TCB_NAME},
+ {{SE_SECURITY_PRIVILEGE, 0}, SE_SECURITY_NAME},
+ {{SE_TAKE_OWNERSHIP_PRIVILEGE, 0}, SE_TAKE_OWNERSHIP_NAME},
+ {{SE_LOAD_DRIVER_PRIVILEGE, 0}, SE_LOAD_DRIVER_NAME},
+ {{SE_SYSTEM_PROFILE_PRIVILEGE, 0}, SE_SYSTEM_PROFILE_NAME},
+ {{SE_SYSTEMTIME_PRIVILEGE, 0}, SE_SYSTEMTIME_NAME},
+ {{SE_PROF_SINGLE_PROCESS_PRIVILEGE, 0}, SE_PROF_SINGLE_PROCESS_NAME},
+ {{SE_INC_BASE_PRIORITY_PRIVILEGE, 0}, SE_INC_BASE_PRIORITY_NAME},
+ {{SE_CREATE_PAGEFILE_PRIVILEGE, 0}, SE_CREATE_PAGEFILE_NAME},
+ {{SE_CREATE_PERMANENT_PRIVILEGE, 0}, SE_CREATE_PERMANENT_NAME},
+ {{SE_BACKUP_PRIVILEGE, 0}, SE_BACKUP_NAME},
+ {{SE_RESTORE_PRIVILEGE, 0}, SE_RESTORE_NAME},
+ {{SE_SHUTDOWN_PRIVILEGE, 0}, SE_SHUTDOWN_NAME},
+ {{SE_DEBUG_PRIVILEGE, 0}, SE_DEBUG_NAME},
+ {{SE_AUDIT_PRIVILEGE, 0}, SE_AUDIT_NAME},
+ {{SE_SYSTEM_ENVIRONMENT_PRIVILEGE, 0}, SE_SYSTEM_ENVIRONMENT_NAME},
+ {{SE_CHANGE_NOTIFY_PRIVILEGE, 0}, SE_CHANGE_NOTIFY_NAME},
+ {{SE_REMOTE_SHUTDOWN_PRIVILEGE, 0}, SE_REMOTE_SHUTDOWN_NAME},
+ {{SE_UNDOCK_PRIVILEGE, 0}, SE_UNDOCK_NAME},
+ {{SE_SYNC_AGENT_PRIVILEGE, 0}, SE_SYNC_AGENT_NAME},
+ {{SE_ENABLE_DELEGATION_PRIVILEGE, 0}, SE_ENABLE_DELEGATION_NAME},
+ {{SE_MANAGE_VOLUME_PRIVILEGE, 0}, SE_MANAGE_VOLUME_NAME},
+ {{SE_IMPERSONATE_PRIVILEGE, 0}, SE_IMPERSONATE_NAME},
+ {{SE_CREATE_GLOBAL_PRIVILEGE, 0}, SE_CREATE_GLOBAL_NAME}
};