add shared/ku/config.h and related changes

This commit is contained in:
Bill Zissimopoulos 2020-02-07 15:40:08 -08:00
parent 0650cabc47
commit 24b5d48fed
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3
7 changed files with 44 additions and 3 deletions

View File

@ -35,6 +35,7 @@
<ClInclude Include="..\..\src\dll\fuse3\library.h" />
<ClInclude Include="..\..\src\dll\fuse\library.h" />
<ClInclude Include="..\..\src\dll\library.h" />
<ClInclude Include="..\..\src\shared\ku\config.h" />
<ClInclude Include="..\..\src\shared\ku\library.h" />
<ClInclude Include="..\..\src\shared\um\minimal.h" />
</ItemGroup>

View File

@ -86,6 +86,9 @@
<ClInclude Include="..\..\src\shared\ku\library.h">
<Filter>Source\shared\ku</Filter>
</ClInclude>
<ClInclude Include="..\..\src\shared\ku\config.h">
<Filter>Source\shared\ku</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\dll\library.c">

View File

@ -193,6 +193,7 @@
<ItemGroup>
<ClInclude Include="..\..\inc\winfsp\fsctl.h" />
<ClInclude Include="..\..\opt\fsext\inc\winfsp\fsext.h" />
<ClInclude Include="..\..\src\shared\ku\config.h" />
<ClInclude Include="..\..\src\shared\ku\library.h" />
<ClInclude Include="..\..\src\sys\driver.h" />
</ItemGroup>

View File

@ -136,6 +136,9 @@
<ClInclude Include="..\..\src\shared\ku\library.h">
<Filter>Source\shared\ku</Filter>
</ClInclude>
<ClInclude Include="..\..\src\shared\ku\config.h">
<Filter>Source\shared\ku</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="..\..\src\sys\version.rc">

View File

@ -28,7 +28,7 @@
#include <shared/um/minimal.h>
#include <strsafe.h>
#define FSP_CFG_REJECT_EARLY_IRP
#include <shared/ku/config.h>
#define LIBRARY_NAME "WinFsp"

33
src/shared/ku/config.h Normal file
View File

@ -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

View File

@ -33,9 +33,9 @@
#include <winfsp/fsctl.h>
#include <winfsp/fsext.h>
#define FSP_CFG_REJECT_EARLY_IRP
#include <shared/ku/config.h>
/* disable warnings */
/* disable warnings */
#pragma warning(disable:4100) /* unreferenced formal parameter */
#pragma warning(disable:4200) /* zero-sized array in struct/union */