From 24b5d48fed40e048e62d72717a1d3adefe617ad1 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Fri, 7 Feb 2020 15:40:08 -0800 Subject: [PATCH] add shared/ku/config.h and related changes --- build/VStudio/winfsp_dll.vcxproj | 1 + build/VStudio/winfsp_dll.vcxproj.filters | 3 +++ build/VStudio/winfsp_sys.vcxproj | 1 + build/VStudio/winfsp_sys.vcxproj.filters | 3 +++ src/dll/library.h | 2 +- src/shared/ku/config.h | 33 ++++++++++++++++++++++++ src/sys/driver.h | 4 +-- 7 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 src/shared/ku/config.h diff --git a/build/VStudio/winfsp_dll.vcxproj b/build/VStudio/winfsp_dll.vcxproj index b0788789..45c1bea2 100644 --- a/build/VStudio/winfsp_dll.vcxproj +++ b/build/VStudio/winfsp_dll.vcxproj @@ -35,6 +35,7 @@ + diff --git a/build/VStudio/winfsp_dll.vcxproj.filters b/build/VStudio/winfsp_dll.vcxproj.filters index 1fd13cd7..95efcf6a 100644 --- a/build/VStudio/winfsp_dll.vcxproj.filters +++ b/build/VStudio/winfsp_dll.vcxproj.filters @@ -86,6 +86,9 @@ Source\shared\ku + + Source\shared\ku + diff --git a/build/VStudio/winfsp_sys.vcxproj b/build/VStudio/winfsp_sys.vcxproj index b62a7781..102649a2 100644 --- a/build/VStudio/winfsp_sys.vcxproj +++ b/build/VStudio/winfsp_sys.vcxproj @@ -193,6 +193,7 @@ + diff --git a/build/VStudio/winfsp_sys.vcxproj.filters b/build/VStudio/winfsp_sys.vcxproj.filters index 7f71883d..f8e5bfe7 100644 --- a/build/VStudio/winfsp_sys.vcxproj.filters +++ b/build/VStudio/winfsp_sys.vcxproj.filters @@ -136,6 +136,9 @@ Source\shared\ku + + Source\shared\ku + diff --git a/src/dll/library.h b/src/dll/library.h index fa3f5ec5..d8582f8e 100644 --- a/src/dll/library.h +++ b/src/dll/library.h @@ -28,7 +28,7 @@ #include #include -#define FSP_CFG_REJECT_EARLY_IRP +#include #define LIBRARY_NAME "WinFsp" diff --git a/src/shared/ku/config.h b/src/shared/ku/config.h new file mode 100644 index 00000000..2e98009c --- /dev/null +++ b/src/shared/ku/config.h @@ -0,0 +1,33 @@ +/** + * @file shared/ku/config.h + * + * Shared kernel/user configuration. This file is to be included by the + * FSD and DLL components ONLY! + * + * @copyright 2015-2020 Bill Zissimopoulos + */ +/* + * This file is part of WinFsp. + * + * You can redistribute it and/or modify it under the terms of the GNU + * General Public License version 3 as published by the Free Software + * Foundation. + * + * Licensees holding a valid commercial license may use this software + * in accordance with the commercial license agreement provided in + * conjunction with the software. The terms and conditions of any such + * commercial license agreement shall govern, supersede, and render + * ineffective any application of the GPLv3 license to this software, + * notwithstanding of any reference thereto in the software or + * associated repository. + */ + +#ifndef WINFSP_SHARED_KU_CONFIG_H_INCLUDED +#define WINFSP_SHARED_KU_CONFIG_H_INCLUDED + +/* + * Define the FSP_CFG_REJECT_EARLY_IRP macro to support the RejectIrpPriorToTransact0 flag. + */ +#define FSP_CFG_REJECT_EARLY_IRP + +#endif diff --git a/src/sys/driver.h b/src/sys/driver.h index 50ab13c1..1a78518d 100644 --- a/src/sys/driver.h +++ b/src/sys/driver.h @@ -33,9 +33,9 @@ #include #include -#define FSP_CFG_REJECT_EARLY_IRP +#include - /* disable warnings */ +/* disable warnings */ #pragma warning(disable:4100) /* unreferenced formal parameter */ #pragma warning(disable:4200) /* zero-sized array in struct/union */