Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeneficialCode/WinArk
/ GetSessionId
Method
GetSessionId
WinSysCore/Token.cpp:88–92 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
86
}
87
88
DWORD Token::GetSessionId() const {
89
DWORD id = 0, len;
90
::GetTokenInformation(_handle.get(), TokenSessionId, &id, sizeof(id), &len);
91
return id;
92
}
93
94
TOKEN_STATISTICS Token::GetStats() const {
95
TOKEN_STATISTICS stats{};
Callers
1
InitToken
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected