diff options
Diffstat (limited to 'include/winapi')
-rw-r--r-- | include/winapi/handle.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/winapi/handle.hpp b/include/winapi/handle.hpp index 536de26..7c10735 100644 --- a/include/winapi/handle.hpp +++ b/include/winapi/handle.hpp @@ -28,7 +28,10 @@ public: void swap(Handle& other) BOOST_NOEXCEPT_OR_NOTHROW; - explicit operator HANDLE() const { return m_impl.get(); } + HANDLE get() const { return m_impl.get(); } + HANDLE ptr() const { return get(); } + + explicit operator HANDLE() const { return ptr(); } bool is_invalid() const; static bool is_invalid(HANDLE); |