MCPcopy Create free account
hub / github.com/LizardByte/Sunshine / retrieve_users_token

Function retrieve_users_token

src/platform/windows/misc.cpp:296–355  ·  view source on GitHub ↗

* @brief Obtain the current sessions user's primary token with elevated privileges. * @return The user's token. If user has admin capability it will be elevated, otherwise it will be a limited token. On error, `nullptr`. * * @param elevated Whether the command should run with elevated privileges. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

run_commandFunction · 0.85

Calls 1

IsUserAdminFunction · 0.85

Tested by

no test coverage detected