MCPcopy Create free account
hub / github.com/dobin/RedEdr / PrintCurrentUser

Function PrintCurrentUser

RedEdr/privileges.cpp:230–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228
229
230void PrintCurrentUser() {
231 wchar_t name[256];
232 DWORD size = sizeof(name) / sizeof(wchar_t);
233 if (GetUserName(name, &size)) {
234 std::wcout << L"User: " << name << std::endl;
235 }
236}
237
238
239BOOL PermissionMakeMeDebug() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected