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
qntdll_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
QNTDLL_P_H
6
#
define
QNTDLL_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
#
include
<
QtCore
/
qt_windows
.
h
>
22
#
include
<
winternl
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
// Empty namespace scope just to suppress syncqt
26
QT_END_NAMESPACE
27
28
// keep the following structure as is, taken from
29
// https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/ns-ntddk-_file_fs_sector_size_information
30
// Unfortunately we can't include the ntddk.h header, so we duplicate the code here.
31
typedef
struct
_FILE_FS_SECTOR_SIZE_INFORMATION {
32
ULONG LogicalBytesPerSector;
33
ULONG PhysicalBytesPerSectorForAtomicity;
34
ULONG PhysicalBytesPerSectorForPerformance;
35
ULONG FileSystemEffectivePhysicalBytesPerSectorForAtomicity;
36
ULONG Flags;
37
ULONG ByteOffsetForSectorAlignment;
38
ULONG ByteOffsetForPartitionAlignment;
39
} FILE_FS_SECTOR_SIZE_INFORMATION, *PFILE_FS_SECTOR_SIZE_INFORMATION;
40
41
#
if
!
defined
(
Q_CC_MINGW
)
42
// keep the following enumeration as is, taken from
43
// https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ne-wdm-_fsinfoclass
44
// Unfortunately we can't include the wdm.h header, so we duplicate the code here.
45
typedef
enum
_FSINFOCLASS
{
46
FileFsVolumeInformation
,
47
FileFsLabelInformation
,
48
FileFsSizeInformation
,
49
FileFsDeviceInformation
,
50
FileFsAttributeInformation
,
51
FileFsControlInformation
,
52
FileFsFullSizeInformation
,
53
FileFsObjectIdInformation
,
54
FileFsDriverPathInformation
,
55
FileFsVolumeFlagsInformation
,
56
FileFsSectorSizeInformation
,
57
FileFsDataCopyInformation
,
58
FileFsMetadataSizeInformation
,
59
FileFsFullSizeInformationEx
,
60
FileFsMaximumInformation
61
} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
62
#
endif
63
64
#
endif
// QNTDLL_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
_FSINFOCLASS
_FSINFOCLASS
Definition
qntdll_p.h:45
FileFsVolumeFlagsInformation
@ FileFsVolumeFlagsInformation
Definition
qntdll_p.h:55
FileFsControlInformation
@ FileFsControlInformation
Definition
qntdll_p.h:51
FileFsSectorSizeInformation
@ FileFsSectorSizeInformation
Definition
qntdll_p.h:56
FileFsDeviceInformation
@ FileFsDeviceInformation
Definition
qntdll_p.h:49
FileFsLabelInformation
@ FileFsLabelInformation
Definition
qntdll_p.h:47
FileFsAttributeInformation
@ FileFsAttributeInformation
Definition
qntdll_p.h:50
FileFsVolumeInformation
@ FileFsVolumeInformation
Definition
qntdll_p.h:46
FileFsObjectIdInformation
@ FileFsObjectIdInformation
Definition
qntdll_p.h:53
FileFsSizeInformation
@ FileFsSizeInformation
Definition
qntdll_p.h:48
FileFsMaximumInformation
@ FileFsMaximumInformation
Definition
qntdll_p.h:60
FileFsDriverPathInformation
@ FileFsDriverPathInformation
Definition
qntdll_p.h:54
FileFsMetadataSizeInformation
@ FileFsMetadataSizeInformation
Definition
qntdll_p.h:58
FileFsFullSizeInformationEx
@ FileFsFullSizeInformationEx
Definition
qntdll_p.h:59
FileFsDataCopyInformation
@ FileFsDataCopyInformation
Definition
qntdll_p.h:57
FileFsFullSizeInformation
@ FileFsFullSizeInformation
Definition
qntdll_p.h:52
canonicalPath
static QString canonicalPath(const QString &rootPath)
Definition
qstorageinfo_win.cpp:26
getDevice
static QByteArray getDevice(const QString &rootPath)
Definition
qstorageinfo_win.cpp:66
defaultBufferSize
static const int defaultBufferSize
Definition
qstorageinfo_win.cpp:24
qtbase
src
corelib
io
qntdll_p.h
Generated on
for Qt by
1.18.0