mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-20 14:05:45 +00:00
22 lines
425 B
C++
22 lines
425 B
C++
#pragma once
|
|
|
|
class native_handle
|
|
{
|
|
public:
|
|
native_handle();
|
|
native_handle(HANDLE handle);
|
|
~native_handle();
|
|
|
|
native_handle(const native_handle&) = delete;
|
|
native_handle& operator=(const native_handle&) = delete;
|
|
|
|
native_handle(native_handle&& obj) noexcept;
|
|
native_handle& operator=(native_handle&& obj) noexcept;
|
|
|
|
operator HANDLE() const;
|
|
operator bool() const;
|
|
|
|
private:
|
|
HANDLE handle_{INVALID_HANDLE_VALUE};
|
|
};
|