mirror of
https://github.com/qtkite/defender-control.git
synced 2024-11-04 12:00:15 +00:00
function doc
This commit is contained in:
parent
5aa808c269
commit
08774abf06
@ -320,4 +320,3 @@ namespace dcontrol
|
||||
return (!result);
|
||||
}
|
||||
}
|
||||
// Query WMI
|
@ -46,6 +46,5 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
system("pause");
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -77,6 +77,8 @@ namespace reg
|
||||
return true;
|
||||
}
|
||||
|
||||
// Set value in registry as a DWORD
|
||||
//
|
||||
bool set_keyval(HKEY& hkey, const wchar_t* value_name, DWORD value)
|
||||
{
|
||||
auto ret = RegSetValueExW(hkey, value_name, 0, REG_DWORD,
|
||||
@ -91,6 +93,8 @@ namespace reg
|
||||
return true;
|
||||
}
|
||||
|
||||
// Set value in registry as binary mode
|
||||
//
|
||||
bool set_keyval_bin(HKEY& hkey, const wchar_t* value_name, DWORD value)
|
||||
{
|
||||
auto ret = RegSetValueExW(hkey, value_name, 0, REG_BINARY,
|
||||
|
@ -7,10 +7,16 @@
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user