Back to the WFC main page
wfc_enable_all_privileges
$Revision: 1 $
Declaration
BOOL wfc_enable_all_privileges( void )
Description
This function returns TRUE if all privileges on a system
have been enabled. FALSE will be returned if at least one
privelege could not be enabled.
It will attempt to enable the following privileges:
SE_INTERACTIVE_LOGON_NAME
SE_NETWORK_LOGON_NAME
SE_BATCH_LOGON_NAME
SE_SERVICE_LOGON_NAME
SE_CREATE_TOKEN_NAME
SE_ASSIGNPRIMARYTOKEN_NAME
SE_LOCK_MEMORY_NAME
SE_INCREASE_QUOTA_NAME
SE_UNSOLICITED_INPUT_NAME
SE_MACHINE_ACCOUNT_NAME
SE_TCB_NAME
SE_SECURITY_NAME
SE_TAKE_OWNERSHIP_NAME
SE_LOAD_DRIVER_NAME
SE_SYSTEM_PROFILE_NAME
SE_SYSTEMTIME_NAME
SE_PROF_SINGLE_PROCESS_NAME
SE_INC_BASE_PRIORITY_NAME
SE_CREATE_PAGEFILE_NAME
SE_CREATE_PERMANENT_NAME
SE_BACKUP_NAME
SE_RESTORE_NAME
SE_SHUTDOWN_NAME
SE_DEBUG_NAME
SE_AUDIT_NAME
SE_SYSTEM_ENVIRONMENT_NAME
SE_CHANGE_NOTIFY_NAME
SE_REMOTE_SHUTDOWN_NAME
Example
int _tmain( void )
{
WFCTRACEINIT( TEXT( "_tmain()" ) );
if ( wfc_enable_all_privileges() == FALSE )
{
_tprintf( TEXT( "Could not enable all privileges.\n" ) );
}
return( EXIT_SUCCESS );
}
API's Used
wfc_enable_all_privileges() uses the following API's:
Copyright, 2000, Samuel R. Blackburn
$Workfile: wfc_enable_all_privileges.cpp $
$Modtime: 1/17/00 9:32a $