| 15 | }; |
| 16 | |
| 17 | class Auth |
| 18 | { |
| 19 | public: |
| 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 | |
| 32 | private: |
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected