5#ifndef QFUNCTIONS_WIN_P_H
6#define QFUNCTIONS_WIN_P_H
19#include <QtCore/private/qglobal_p.h>
21#if defined(Q_OS_WIN) || defined(Q_QDOC)
23#if !defined(QT_BOOTSTRAPPED)
24#include <QtCore/private/qfunctions_winrt_p.h>
27#include <QtCore/qt_windows.h>
31class Q_CORE_EXPORT QComHelper
33 Q_DISABLE_COPY_MOVE(QComHelper)
35 QComHelper(COINIT concurrencyModel = COINIT_APARTMENTTHREADED);
38 bool isValid()
const {
return SUCCEEDED(m_initResult); }
39 explicit operator
bool()
const {
return isValid(); }
42 HRESULT m_initResult = E_FAIL;
43 DWORD m_threadId{ GetCurrentThreadId() };
46Q_CORE_EXPORT
void qt_win_ensureComInitializedOnThisThread();
48Q_CORE_EXPORT
bool qt_win_hasPackageIdentity();
void qt_win_ensureComInitializedOnThisThread()
bool qt_win_hasPackageIdentity()