MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:1781–1784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1779 TOKEN_PRIVILEGES tkp = {};
1780
1781 if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) return false;
1782
1783 LookupPrivilegeValueW(NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid);
1784
1785 tkp.PrivilegeCount = 1;
1786 tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
1787

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
cpuUsageMethod · 0.80

Tested by

no test coverage detected