File indexing completed on 2026-05-10 08:42:48
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef lldb_Host_windows_HostInfoWindows_h_
0010 #define lldb_Host_windows_HostInfoWindows_h_
0011
0012 #include "lldb/Host/HostInfoBase.h"
0013 #include "lldb/Utility/FileSpec.h"
0014 #include "llvm/Support/VersionTuple.h"
0015 #include <optional>
0016
0017 namespace lldb_private {
0018 class UserIDResolver;
0019
0020 class HostInfoWindows : public HostInfoBase {
0021 friend class HostInfoBase;
0022
0023 public:
0024 static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
0025 static void Terminate();
0026
0027 static size_t GetPageSize();
0028 static UserIDResolver &GetUserIDResolver();
0029
0030 static llvm::VersionTuple GetOSVersion();
0031 static std::optional<std::string> GetOSBuildString();
0032 static std::optional<std::string> GetOSKernelDescription();
0033 static bool GetHostname(std::string &s);
0034 static FileSpec GetProgramFileSpec();
0035 static FileSpec GetDefaultShell();
0036
0037 static bool GetEnvironmentVar(const std::string &var_name, std::string &var);
0038
0039 private:
0040 static FileSpec m_program_filespec;
0041 };
0042 }
0043
0044 #endif