function doc

This commit is contained in:
qtkite 2021-07-24 14:53:37 +10:00
parent 5aa808c269
commit 08774abf06
4 changed files with 11 additions and 3 deletions

View File

@ -320,4 +320,3 @@ namespace dcontrol
return (!result);
}
}
// Query WMI

View File

@ -46,6 +46,5 @@ int main(int argc, char** argv)
}
system("pause");
return EXIT_SUCCESS;
}

View File

@ -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,

View File

@ -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