1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-08-30 21:53:16 +00:00

Debug service start

This commit is contained in:
momo5502
2023-12-10 09:40:15 +01:00
parent 35f18600b8
commit 046df34929
2 changed files with 5 additions and 2 deletions

View File

@@ -31,7 +31,10 @@ driver::driver(const std::filesystem::path& driver_file, const std::string& serv
throw std::runtime_error("Unable to create service"); throw std::runtime_error("Unable to create service");
} }
StartServiceA(this->service_, 0, nullptr); if(!StartServiceA(this->service_, 0, nullptr))
{
printf("Failed to start service: %d\n", GetLastError());
}
} }
driver::~driver() driver::~driver()

View File

@@ -11,7 +11,7 @@ public:
driver(const driver&) = delete; driver(const driver&) = delete;
driver& operator=(const driver&) = delete; driver& operator=(const driver&) = delete;
driver(driver&& obj) noexcept = default;; driver(driver&& obj) noexcept = default;
driver& operator=(driver&& obj) noexcept = default; driver& operator=(driver&& obj) noexcept = default;
operator bool() const operator bool() const