Windows C++ Library
|
An RAII style class for initialising and uninitialising COM. More...
#include <AutoCom.hpp>
Public Member Functions | |
AutoCom () | |
Default constructor. | |
AutoCom (DWORD dwFlags) | |
Constructor to initialise COM. | |
~AutoCom () | |
Destructor. | |
bool | IsInitialised () const |
Query if COM is initialised. | |
void | Initialise (DWORD dwFlags) |
Manually initialise COM. | |
void | Uninitialise () |
Manually uninitialise COM. | |
Private Attributes | |
bool | m_bInitialised |
Flag to control uninitialisation. |
An RAII style class for initialising and uninitialising COM.
WCL::AutoCom::AutoCom | ( | ) | [inline] |
Default constructor.
WCL::AutoCom::AutoCom | ( | DWORD | dwFlags | ) | [inline] |
Constructor to initialise COM.
WCL::AutoCom::~AutoCom | ( | ) | [inline] |
Destructor.
bool WCL::AutoCom::IsInitialised | ( | ) | const [inline] |
Query if COM is initialised.
void WCL::AutoCom::Initialise | ( | DWORD | dwFlags | ) | [inline] |
Manually initialise COM.
void WCL::AutoCom::Uninitialise | ( | ) | [inline] |
Manually uninitialise COM.
bool WCL::AutoCom::m_bInitialised [private] |
Flag to control uninitialisation.