foobar2000 SDK  2015-08-03
Public Member Functions
CloseHandleScope

#include <win32_misc.h>

Public Member Functions

 CloseHandleScope (HANDLE handle) throw ()
 
 ~CloseHandleScope () throw ()
 
void Close () throw ()
 
HANDLE Detach () throw ()
 
HANDLE Get () const throw ()
 

Detailed Description

Definition at line 173 of file win32_misc.h.

Constructor & Destructor Documentation

CloseHandleScope::CloseHandleScope ( HANDLE  handle)
throw (
)
inline

Definition at line 175 of file win32_misc.h.

175 : m_handle(handle) {}
CloseHandleScope::~CloseHandleScope ( )
throw (
)
inline

Definition at line 176 of file win32_misc.h.

176 {CloseHandle(m_handle);}

Member Function Documentation

void CloseHandleScope::Close ( )
throw (
)
inline

Definition at line 179 of file win32_misc.h.

179 {CloseHandle(Detach());}
HANDLE Detach()
Definition: win32_misc.h:177
HANDLE CloseHandleScope::Detach ( )
throw (
)
inline

Definition at line 177 of file win32_misc.h.

177 {return pfc::replace_t(m_handle,INVALID_HANDLE_VALUE);}
t_type replace_t(t_type &p_var, const t_newval &p_newval)
Definition: primitives.h:682
HANDLE CloseHandleScope::Get ( ) const
throw (
)
inline

Definition at line 178 of file win32_misc.h.

178 {return m_handle;}

The documentation for this class was generated from the following file: