MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / Auth

Class Auth

KBotExt/Auth.h:17–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17class Auth
18{
19public:
20 Auth() = default;
21 ~Auth() = default;
22
23 static std::vector<DWORD> GetAllProcessIds(const std::wstring& processName);
24
25 // set riotClient flag when you need Riot Client info but RiotClientUx.exe is closed
26 static ClientInfo GetClientInfo(const DWORD& pid, bool riotClient = false);
27 static DWORD GetProcessId(const std::wstring& processName);
28
29 static std::string MakeLeagueHeader(const ClientInfo& info);
30 static std::string MakeRiotHeader(const ClientInfo& info);
31
32private:
33 static inline Base64 base64;
34
35 static int GetPort(const std::string& cmdLine, bool riotClient = false);
36 static std::string GetToken(const std::string& cmdLine, bool riotClient = false);
37
38 static std::wstring GetProcessCommandLine(const DWORD& processId);
39 static std::wstring GetProcessPath(const DWORD& processId);
40 static std::string GetFileVersion(const std::wstring& file);
41};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected