WinStd
Additional templates and function helpers for Microsoft Windows using Standard C++ classes
|
Context scope automatic COM (un)initialization. More...
#include <COM.h>
Public Member Functions | |
com_initializer (_In_opt_ LPVOID pvReserved) noexcept | |
Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA). More... | |
com_initializer (_In_opt_ LPVOID pvReserved, _In_ 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. More... | |
virtual | ~com_initializer () |
Uninitializes COM. More... | |
HRESULT | status () const noexcept |
Return result of CoInitialize() call. More... | |
Protected Attributes | |
HRESULT | m_result |
Result of CoInitialize call. | |
Context scope automatic COM (un)initialization.
|
inlinenoexcept |
Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA).
|
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.
|
inlinevirtual |
Uninitializes COM.
|
inlinenoexcept |
Return result of CoInitialize()
call.