MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / IsElevated

Method IsElevated

WinSysCore/Token.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57bool Token::IsElevated() const {
58 ULONG elevated = 0;
59 DWORD len;
60 ::GetTokenInformation(_handle.get(), TokenElevation, &elevated, sizeof(elevated), &len);
61 return elevated ? true : false;
62}
63
64VirtualizationState Token::GetVirtualizationState() const {
65 ULONG virt = 0;

Callers 2

InitTokenMethod · 0.45
ImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected