You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
defender-control/src/defender-control/trusted.hpp

34 lines
586 B
C++

#pragma once
#include <Windows.h>
#include <string>
#include <sddl.h>
#include <iostream>
#include "util.hpp"
namespace trusted
{
// Enable prvileges
//
bool enable_privilege(std::string privilege);
// Give system permissions
//
bool impersonate_system();
// Start the trusted installer service
//
DWORD start_trusted();
// Being a process as TrustedInstaller
//
bool create_process(std::string commandLine);
// Check current permissions for SYSTEM
//
bool is_system_group();
// Checks if the current process is elevated
//
bool has_admin();
}