Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QFUNCTIONS_WIN_P_H
6
#
define
QFUNCTIONS_WIN_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
20
21
#
if
defined
(
Q_OS_WIN
)
||
defined
(
Q_QDOC
)
22
23
#
if
!
defined
(
QT_BOOTSTRAPPED
)
24
#
include
<
QtCore
/
private
/
qfunctions_winrt_p
.
h
>
25
#
endif
26
27
#
include
<
QtCore
/
qt_windows
.
h
>
28
29
QT_BEGIN_NAMESPACE
30
31
class
Q_CORE_EXPORT QComHelper
32
{
33
Q_DISABLE_COPY_MOVE(QComHelper)
34
public
:
35
QComHelper(COINIT concurrencyModel = COINIT_APARTMENTTHREADED);
36
~QComHelper();
37
38
bool
isValid()
const
{
return
SUCCEEDED(m_initResult); }
39
explicit
operator
bool
()
const
{
return
isValid(); }
40
41
private
:
42
HRESULT m_initResult = E_FAIL;
43
DWORD m_threadId{ GetCurrentThreadId() };
44
};
45
46
Q_CORE_EXPORT
void
qt_win_ensureComInitializedOnThisThread();
47
48
Q_CORE_EXPORT
bool
qt_win_hasPackageIdentity();
49
50
QT_END_NAMESPACE
51
52
#
endif
// Q_OS_WIN
53
54
#
endif
// QFUNCTIONS_WIN_P_H
__has_include
#define __has_include(x)
Definition
qcompilerdetection.h:459
qt_win_ensureComInitializedOnThisThread
void qt_win_ensureComInitializedOnThisThread()
Definition
qfunctions_win.cpp:47
qt_win_hasPackageIdentity
bool qt_win_hasPackageIdentity()
Definition
qfunctions_win.cpp:61
qtbase
src
corelib
kernel
qfunctions_win_p.h
Generated on
for Qt by
1.18.0