1 //===-- HostInfoWindows.h ---------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef lldb_Host_windows_HostInfoWindows_h_
10 #define lldb_Host_windows_HostInfoWindows_h_
11 
12 #include "lldb/Host/HostInfoBase.h"
13 #include "lldb/Utility/FileSpec.h"
14 #include "llvm/Support/VersionTuple.h"
15 
16 namespace lldb_private {
17 class UserIDResolver;
18 
19 class HostInfoWindows : public HostInfoBase {
20   friend class HostInfoBase;
21 
22 private:
23   // Static class, unconstructable.
24   HostInfoWindows();
25   ~HostInfoWindows();
26 
27 public:
28   static void Initialize();
29   static void Terminate();
30 
31   static size_t GetPageSize();
32   static UserIDResolver &GetUserIDResolver();
33 
34   static llvm::VersionTuple GetOSVersion();
35   static bool GetOSBuildString(std::string &s);
36   static bool GetOSKernelDescription(std::string &s);
37   static bool GetHostname(std::string &s);
38   static FileSpec GetProgramFileSpec();
39   static FileSpec GetDefaultShell();
40 
41   static bool GetEnvironmentVar(const std::string &var_name, std::string &var);
42 
43 private:
44   static FileSpec m_program_filespec;
45 };
46 }
47 
48 #endif
49