Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qfunctions_win_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QFUNCTIONS_WIN_P_H
5#define QFUNCTIONS_WIN_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/private/qglobal_p.h>
19
20#if defined(Q_OS_WIN) || defined(Q_QDOC)
21
22#if !defined(QT_BOOTSTRAPPED)
23#include <QtCore/private/qfunctions_winrt_p.h>
24#endif
25
26#include <QtCore/qt_windows.h>
27
29
30class Q_CORE_EXPORT QComHelper
31{
32 Q_DISABLE_COPY_MOVE(QComHelper)
33public:
34 QComHelper(COINIT concurrencyModel = COINIT_APARTMENTTHREADED);
35 ~QComHelper();
36
37 bool isValid() const { return SUCCEEDED(m_initResult); }
38 explicit operator bool() const { return isValid(); }
39
40private:
41 HRESULT m_initResult = E_FAIL;
42 DWORD m_threadId{ GetCurrentThreadId() };
43};
44
45Q_CORE_EXPORT bool qt_win_hasPackageIdentity();
46
48
49#endif // Q_OS_WIN
50
51#endif // QFUNCTIONS_WIN_P_H
Combined button and popup list for selecting options.
bool qt_win_hasPackageIdentity()
long HRESULT