OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::Win::Service::ScopedSCHandle Class Reference

Public Member Functions

 ScopedSCHandle ()
 
 ScopedSCHandle (SC_HANDLE h)
 
SC_HANDLE release ()
 
bool defined () const
 
SC_HANDLE operator() () const
 
SC_HANDLE * ref ()
 
void reset (SC_HANDLE h)
 
void replace (SC_HANDLE h)
 
bool close ()
 
 ~ScopedSCHandle ()
 
 ScopedSCHandle (ScopedSCHandle &&other) noexcept
 
ScopedSCHandleoperator= (ScopedSCHandle &&other) noexcept
 

Private Member Functions

 ScopedSCHandle (const ScopedSCHandle &)=delete
 
ScopedSCHandleoperator= (const ScopedSCHandle &)=delete
 

Private Attributes

SC_HANDLE handle
 

Detailed Description

Definition at line 199 of file winsvc.hpp.

Constructor & Destructor Documentation

◆ ScopedSCHandle() [1/4]

openvpn::Win::Service::ScopedSCHandle::ScopedSCHandle ( const ScopedSCHandle )
privatedelete

◆ ScopedSCHandle() [2/4]

openvpn::Win::Service::ScopedSCHandle::ScopedSCHandle ( )
inline

Definition at line 205 of file winsvc.hpp.

◆ ScopedSCHandle() [3/4]

openvpn::Win::Service::ScopedSCHandle::ScopedSCHandle ( SC_HANDLE  h)
inlineexplicit

Definition at line 210 of file winsvc.hpp.

◆ ~ScopedSCHandle()

openvpn::Win::Service::ScopedSCHandle::~ScopedSCHandle ( )
inline

Definition at line 261 of file winsvc.hpp.

◆ ScopedSCHandle() [4/4]

openvpn::Win::Service::ScopedSCHandle::ScopedSCHandle ( ScopedSCHandle &&  other)
inlinenoexcept

Definition at line 266 of file winsvc.hpp.

Member Function Documentation

◆ close()

bool openvpn::Win::Service::ScopedSCHandle::close ( )
inline

Definition at line 249 of file winsvc.hpp.

Here is the caller graph for this function:

◆ defined()

bool openvpn::Win::Service::ScopedSCHandle::defined ( ) const
inline

Definition at line 222 of file winsvc.hpp.

Here is the caller graph for this function:

◆ operator()()

SC_HANDLE openvpn::Win::Service::ScopedSCHandle::operator() ( ) const
inline

Definition at line 227 of file winsvc.hpp.

◆ operator=() [1/2]

ScopedSCHandle & openvpn::Win::Service::ScopedSCHandle::operator= ( const ScopedSCHandle )
privatedelete

◆ operator=() [2/2]

ScopedSCHandle & openvpn::Win::Service::ScopedSCHandle::operator= ( ScopedSCHandle &&  other)
inlinenoexcept

Definition at line 272 of file winsvc.hpp.

◆ ref()

SC_HANDLE * openvpn::Win::Service::ScopedSCHandle::ref ( )
inline

Definition at line 232 of file winsvc.hpp.

◆ release()

SC_HANDLE openvpn::Win::Service::ScopedSCHandle::release ( )
inline

Definition at line 215 of file winsvc.hpp.

◆ replace()

void openvpn::Win::Service::ScopedSCHandle::replace ( SC_HANDLE  h)
inline

Definition at line 244 of file winsvc.hpp.

◆ reset()

void openvpn::Win::Service::ScopedSCHandle::reset ( SC_HANDLE  h)
inline

Definition at line 237 of file winsvc.hpp.

Member Data Documentation

◆ handle

SC_HANDLE openvpn::Win::Service::ScopedSCHandle::handle
private

Definition at line 281 of file winsvc.hpp.


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