Context scope automatic COM (un)initialization.
More...
#include <WinStd/COM.h>
|
| com_initializer (LPVOID pvReserved) noexcept |
| Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA).
|
|
| com_initializer (LPVOID pvReserved, DWORD dwCoInit) noexcept |
| Initializes the COM library for use by the calling thread, sets the thread's concurrency model, and creates a new apartment for the thread if one is required.
|
|
virtual | ~com_initializer () |
| Uninitializes COM.
|
|
HRESULT | status () const noexcept |
| Return result of CoInitialize() call.
|
|
|
HRESULT | m_result |
| Result of CoInitialize call.
|
|
Context scope automatic COM (un)initialization.
◆ com_initializer() [1/2]
winstd::com_initializer::com_initializer |
( |
LPVOID |
pvReserved | ) |
|
|
inlinenoexcept |
Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA).
- See also
- CoInitialize function
◆ com_initializer() [2/2]
winstd::com_initializer::com_initializer |
( |
LPVOID |
pvReserved, |
|
|
DWORD |
dwCoInit |
|
) |
| |
|
inlinenoexcept |
Initializes the COM library for use by the calling thread, sets the thread's concurrency model, and creates a new apartment for the thread if one is required.
- See also
- CoInitializeEx function
◆ ~com_initializer()
virtual winstd::com_initializer::~com_initializer |
( |
| ) |
|
|
inlinevirtual |
◆ status()
HRESULT winstd::com_initializer::status |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following file: