summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-05-02 00:44:26 +0200
committerKacper Michajłow <kasper93@gmail.com>2024-05-06 22:01:17 +0200
commit7f6bfab0d3ba80cbced51f84f3ed13817b8e4b5c (patch)
treead78714f980e1998e6e5be685d900cb7dc3b2a86 /stream
parent9fc2343512d656ffd60242018005ef422f55921b (diff)
downloadmpv-7f6bfab0d3ba80cbced51f84f3ed13817b8e4b5c.tar.bz2
mpv-7f6bfab0d3ba80cbced51f84f3ed13817b8e4b5c.tar.xz
stream_file: declare structures available only in Windows DDK
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_file.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index ff42e72eea..1744fc13a4 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -53,6 +53,33 @@
#include <winternl.h>
#include <io.h>
+#ifdef _MSC_VER
+// Those are defined only in Windows DDK
+typedef struct _FILE_FS_DEVICE_INFORMATION {
+ DEVICE_TYPE DeviceType;
+ ULONG Characteristics;
+} FILE_FS_DEVICE_INFORMATION, *PFILE_FS_DEVICE_INFORMATION;
+
+typedef enum _FSINFOCLASS {
+ FileFsVolumeInformation = 1,
+ FileFsLabelInformation, // 2
+ FileFsSizeInformation, // 3
+ FileFsDeviceInformation, // 4
+ FileFsAttributeInformation, // 5
+ FileFsControlInformation, // 6
+ FileFsFullSizeInformation, // 7
+ FileFsObjectIdInformation, // 8
+ FileFsDriverPathInformation, // 9
+ FileFsVolumeFlagsInformation, // 10
+ FileFsSectorSizeInformation, // 11
+ FileFsDataCopyInformation, // 12
+ FileFsMetadataSizeInformation, // 13
+ FileFsFullSizeInformationEx, // 14
+ FileFsGuidInformation, // 15
+ FileFsMaximumInformation
+} FS_INFORMATION_CLASS, *PFS_INFORMATION_CLASS;
+#endif
+
#ifndef FILE_REMOTE_DEVICE
#define FILE_REMOTE_DEVICE (0x10)
#endif