Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
25// Empty namespace scope just to suppress syncqt
26QT_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.
31typedef 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.
62#endif
63
64#endif // QNTDLL_P_H
_FSINFOCLASS
Definition qntdll_p.h:45
@ FileFsVolumeFlagsInformation
Definition qntdll_p.h:55
@ FileFsControlInformation
Definition qntdll_p.h:51
@ FileFsSectorSizeInformation
Definition qntdll_p.h:56
@ FileFsDeviceInformation
Definition qntdll_p.h:49
@ FileFsLabelInformation
Definition qntdll_p.h:47
@ FileFsAttributeInformation
Definition qntdll_p.h:50
@ FileFsVolumeInformation
Definition qntdll_p.h:46
@ FileFsObjectIdInformation
Definition qntdll_p.h:53
@ FileFsSizeInformation
Definition qntdll_p.h:48
@ FileFsMaximumInformation
Definition qntdll_p.h:60
@ FileFsDriverPathInformation
Definition qntdll_p.h:54
@ FileFsMetadataSizeInformation
Definition qntdll_p.h:58
@ FileFsFullSizeInformationEx
Definition qntdll_p.h:59
@ FileFsDataCopyInformation
Definition qntdll_p.h:57
@ FileFsFullSizeInformation
Definition qntdll_p.h:52
static QString canonicalPath(const QString &rootPath)
static QByteArray getDevice(const QString &rootPath)
static const int defaultBufferSize