mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
626 B
36 lines
626 B
#include "shtl.h"
|
|
#include "autoptr.h"
|
|
|
|
|
|
//*************************************************************
|
|
//
|
|
// AutoFindHandle non-inline member functions.
|
|
//
|
|
//*************************************************************
|
|
__DATL_INLINE AutoFindHandle&
|
|
AutoFindHandle::operator = (
|
|
const AutoFindHandle& rhs
|
|
)
|
|
{
|
|
if (this != &rhs)
|
|
{
|
|
Attach(rhs.Detach());
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
|
|
__DATL_INLINE void
|
|
AutoFindHandle::Close(
|
|
void
|
|
)
|
|
{
|
|
if (m_bOwns && INVALID_HANDLE_VALUE != m_handle)
|
|
{
|
|
FindClose(m_handle);
|
|
}
|
|
m_bOwns = false;
|
|
m_handle = INVALID_HANDLE_VALUE;
|
|
}
|
|
|
|
|