mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +00:00
245 lines
7 KiB
C
245 lines
7 KiB
C
/*
|
|
* fltuserstructures.h
|
|
*
|
|
* This file is part of the ReactOS DDK package.
|
|
*
|
|
* Contributors:
|
|
* Amine Khaldi (amine.khaldi@reactos.org)
|
|
*
|
|
* THIS SOFTWARE IS NOT COPYRIGHTED
|
|
*
|
|
* This source code is offered for use in the public domain. You may
|
|
* use, modify or distribute it freely.
|
|
*
|
|
* This code is distributed in the hope that it will be useful but
|
|
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
|
* DISCLAIMED. This includes but is not limited to warranties of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef __FLT_USER_STRUCTURES_H__
|
|
#define __FLT_USER_STRUCTURES_H__
|
|
|
|
#if FLT_MGR_BASELINE
|
|
|
|
#define FLTAPI NTAPI
|
|
|
|
#define FILTER_NAME_MAX_CHARS 255
|
|
#define FILTER_NAME_MAX_BYTES (FILTER_NAME_MAX_CHARS * sizeof(WCHAR))
|
|
#define VOLUME_NAME_MAX_CHARS 1024
|
|
#define VOLUME_NAME_MAX_BYTES (VOLUME_NAME_MAX_CHARS * sizeof(WCHAR))
|
|
#define INSTANCE_NAME_MAX_CHARS 255
|
|
#define INSTANCE_NAME_MAX_BYTES (INSTANCE_NAME_MAX_CHARS * sizeof(WCHAR))
|
|
|
|
typedef HANDLE HFILTER, HFILTER_INSTANCE, HFILTER_VOLUME;
|
|
|
|
#ifndef _NTDEF_H
|
|
typedef _Return_type_success_(return >= 0) LONG NTSTATUS, *PNTSTATUS;
|
|
#endif
|
|
|
|
/* Known File System Types */
|
|
|
|
typedef enum _FLT_FILESYSTEM_TYPE {
|
|
FLT_FSTYPE_UNKNOWN,
|
|
FLT_FSTYPE_RAW,
|
|
FLT_FSTYPE_NTFS,
|
|
FLT_FSTYPE_FAT,
|
|
FLT_FSTYPE_CDFS,
|
|
FLT_FSTYPE_UDFS,
|
|
FLT_FSTYPE_LANMAN,
|
|
FLT_FSTYPE_WEBDAV,
|
|
FLT_FSTYPE_RDPDR,
|
|
FLT_FSTYPE_NFS,
|
|
FLT_FSTYPE_MS_NETWARE,
|
|
FLT_FSTYPE_NETWARE,
|
|
FLT_FSTYPE_BSUDF,
|
|
FLT_FSTYPE_MUP,
|
|
FLT_FSTYPE_RSFX,
|
|
FLT_FSTYPE_ROXIO_UDF1,
|
|
FLT_FSTYPE_ROXIO_UDF2,
|
|
FLT_FSTYPE_ROXIO_UDF3,
|
|
FLT_FSTYPE_TACIT,
|
|
FLT_FSTYPE_FS_REC,
|
|
FLT_FSTYPE_INCD,
|
|
FLT_FSTYPE_INCD_FAT,
|
|
FLT_FSTYPE_EXFAT,
|
|
FLT_FSTYPE_PSFS,
|
|
FLT_FSTYPE_GPFS,
|
|
FLT_FSTYPE_NPFS,
|
|
FLT_FSTYPE_MSFS,
|
|
FLT_FSTYPE_CSVFS
|
|
} FLT_FILESYSTEM_TYPE, *PFLT_FILESYSTEM_TYPE;
|
|
|
|
typedef enum _FILTER_INFORMATION_CLASS {
|
|
FilterFullInformation,
|
|
FilterAggregateBasicInformation,
|
|
FilterAggregateStandardInformation
|
|
} FILTER_INFORMATION_CLASS, *PFILTER_INFORMATION_CLASS;
|
|
|
|
typedef enum _FILTER_VOLUME_INFORMATION_CLASS {
|
|
FilterVolumeBasicInformation,
|
|
FilterVolumeStandardInformation
|
|
} FILTER_VOLUME_INFORMATION_CLASS, *PFILTER_VOLUME_INFORMATION_CLASS;
|
|
|
|
typedef enum _INSTANCE_INFORMATION_CLASS {
|
|
InstanceBasicInformation,
|
|
InstancePartialInformation,
|
|
InstanceFullInformation,
|
|
InstanceAggregateStandardInformation
|
|
} INSTANCE_INFORMATION_CLASS, *PINSTANCE_INFORMATION_CLASS;
|
|
|
|
typedef struct _FILTER_FULL_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
ULONG FrameID;
|
|
ULONG NumberOfInstances;
|
|
USHORT FilterNameLength;
|
|
WCHAR FilterNameBuffer[1];
|
|
} FILTER_FULL_INFORMATION, *PFILTER_FULL_INFORMATION;
|
|
|
|
typedef struct _FILTER_AGGREGATE_BASIC_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
ULONG Flags;
|
|
union {
|
|
struct {
|
|
ULONG FrameID;
|
|
ULONG NumberOfInstances;
|
|
USHORT FilterNameLength;
|
|
USHORT FilterNameBufferOffset;
|
|
USHORT FilterAltitudeLength;
|
|
USHORT FilterAltitudeBufferOffset;
|
|
} MiniFilter;
|
|
struct {
|
|
USHORT FilterNameLength;
|
|
USHORT FilterNameBufferOffset;
|
|
} LegacyFilter;
|
|
} Type;
|
|
} FILTER_AGGREGATE_BASIC_INFORMATION, *PFILTER_AGGREGATE_BASIC_INFORMATION;
|
|
|
|
#if FLT_MGR_LONGHORN
|
|
|
|
#define FLTFL_AGGREGATE_INFO_IS_MINIFILTER 0x00000001
|
|
#define FLTFL_AGGREGATE_INFO_IS_LEGACYFILTER 0x00000002
|
|
#define FLTFL_ASI_IS_MINIFILTER 0x00000001
|
|
#define FLTFL_ASI_IS_LEGACYFILTER 0x00000002
|
|
#define FLTFL_VSI_DETACHED_VOLUME 0x00000001
|
|
#define FLTFL_IASI_IS_MINIFILTER 0x00000001
|
|
#define FLTFL_IASI_IS_LEGACYFILTER 0x00000002
|
|
#define FLTFL_IASIM_DETACHED_VOLUME 0x00000001
|
|
#define FLTFL_IASIL_DETACHED_VOLUME 0x00000001
|
|
|
|
typedef struct _FILTER_AGGREGATE_STANDARD_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
ULONG Flags;
|
|
union {
|
|
struct {
|
|
ULONG Flags;
|
|
ULONG FrameID;
|
|
ULONG NumberOfInstances;
|
|
USHORT FilterNameLength;
|
|
USHORT FilterNameBufferOffset;
|
|
USHORT FilterAltitudeLength;
|
|
USHORT FilterAltitudeBufferOffset;
|
|
} MiniFilter;
|
|
struct {
|
|
ULONG Flags;
|
|
USHORT FilterNameLength;
|
|
USHORT FilterNameBufferOffset;
|
|
USHORT FilterAltitudeLength;
|
|
USHORT FilterAltitudeBufferOffset;
|
|
} LegacyFilter;
|
|
} Type;
|
|
} FILTER_AGGREGATE_STANDARD_INFORMATION, *PFILTER_AGGREGATE_STANDARD_INFORMATION;
|
|
|
|
typedef struct _FILTER_VOLUME_STANDARD_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
ULONG Flags;
|
|
ULONG FrameID;
|
|
FLT_FILESYSTEM_TYPE FileSystemType;
|
|
USHORT FilterVolumeNameLength;
|
|
WCHAR FilterVolumeName[1];
|
|
} FILTER_VOLUME_STANDARD_INFORMATION, *PFILTER_VOLUME_STANDARD_INFORMATION;
|
|
|
|
typedef struct _INSTANCE_AGGREGATE_STANDARD_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
ULONG Flags;
|
|
union {
|
|
struct {
|
|
ULONG Flags;
|
|
ULONG FrameID;
|
|
FLT_FILESYSTEM_TYPE VolumeFileSystemType;
|
|
USHORT InstanceNameLength;
|
|
USHORT InstanceNameBufferOffset;
|
|
USHORT AltitudeLength;
|
|
USHORT AltitudeBufferOffset;
|
|
USHORT VolumeNameLength;
|
|
USHORT VolumeNameBufferOffset;
|
|
USHORT FilterNameLength;
|
|
USHORT FilterNameBufferOffset;
|
|
} MiniFilter;
|
|
struct {
|
|
ULONG Flags;
|
|
USHORT AltitudeLength;
|
|
USHORT AltitudeBufferOffset;
|
|
USHORT VolumeNameLength;
|
|
USHORT VolumeNameBufferOffset;
|
|
USHORT FilterNameLength;
|
|
USHORT FilterNameBufferOffset;
|
|
} LegacyFilter;
|
|
} Type;
|
|
} INSTANCE_AGGREGATE_STANDARD_INFORMATION, *PINSTANCE_AGGREGATE_STANDARD_INFORMATION;
|
|
|
|
#endif /* FLT_MGR_LONGHORN */
|
|
|
|
typedef struct _FILTER_VOLUME_BASIC_INFORMATION {
|
|
USHORT FilterVolumeNameLength;
|
|
WCHAR FilterVolumeName[1];
|
|
} FILTER_VOLUME_BASIC_INFORMATION, *PFILTER_VOLUME_BASIC_INFORMATION;
|
|
|
|
typedef
|
|
_Struct_size_bytes_(sizeof(INSTANCE_BASIC_INFORMATION) * InstanceNameLength)
|
|
struct _INSTANCE_BASIC_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
USHORT InstanceNameLength;
|
|
USHORT InstanceNameBufferOffset;
|
|
} INSTANCE_BASIC_INFORMATION, *PINSTANCE_BASIC_INFORMATION;
|
|
|
|
typedef
|
|
_Struct_size_bytes_(sizeof(INSTANCE_PARTIAL_INFORMATION) + InstanceNameLength + AltitudeLength)
|
|
struct _INSTANCE_PARTIAL_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
USHORT InstanceNameLength;
|
|
USHORT InstanceNameBufferOffset;
|
|
USHORT AltitudeLength;
|
|
USHORT AltitudeBufferOffset;
|
|
} INSTANCE_PARTIAL_INFORMATION, *PINSTANCE_PARTIAL_INFORMATION;
|
|
|
|
typedef
|
|
_Struct_size_bytes_(sizeof(INSTANCE_FULL_INFORMATION) + InstanceNameLength + AltitudeLength + VolumeNameLength + FilterNameLength)
|
|
struct _INSTANCE_FULL_INFORMATION {
|
|
ULONG NextEntryOffset;
|
|
USHORT InstanceNameLength;
|
|
USHORT InstanceNameBufferOffset;
|
|
USHORT AltitudeLength;
|
|
USHORT AltitudeBufferOffset;
|
|
USHORT VolumeNameLength;
|
|
USHORT VolumeNameBufferOffset;
|
|
USHORT FilterNameLength;
|
|
USHORT FilterNameBufferOffset;
|
|
} INSTANCE_FULL_INFORMATION, *PINSTANCE_FULL_INFORMATION;
|
|
|
|
typedef struct _FILTER_MESSAGE_HEADER {
|
|
ULONG ReplyLength;
|
|
ULONGLONG MessageId;
|
|
} FILTER_MESSAGE_HEADER, *PFILTER_MESSAGE_HEADER;
|
|
|
|
typedef struct _FILTER_REPLY_HEADER {
|
|
NTSTATUS Status;
|
|
ULONGLONG MessageId;
|
|
} FILTER_REPLY_HEADER, *PFILTER_REPLY_HEADER;
|
|
|
|
#endif /* FLT_MGR_BASELINE */
|
|
|
|
#endif /* __FLT_USER_STRUCTURES_H__ */
|