mirror of
https://github.com/momo5502/hypervisor.git
synced 2026-08-31 02:45:28 +00:00
Extract into library
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
class service_handle
|
||||
{
|
||||
public:
|
||||
service_handle();
|
||||
service_handle(SC_HANDLE handle);
|
||||
~service_handle();
|
||||
|
||||
service_handle(const service_handle&) = delete;
|
||||
service_handle& operator=(const service_handle&) = delete;
|
||||
|
||||
service_handle(service_handle&& obj) noexcept;
|
||||
service_handle& operator=(service_handle&& obj) noexcept;
|
||||
|
||||
operator SC_HANDLE() const;
|
||||
|
||||
private:
|
||||
SC_HANDLE handle_{nullptr};
|
||||
};
|
||||
Reference in New Issue
Block a user