From 6b83748d898e6b526da6bf29cd488ec4eb1f2573 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Fri, 14 Jun 2019 20:53:09 -0700 Subject: [PATCH] sys: fsext: WIP --- build/VStudio/winfsp_sys.vcxproj | 10 ++++---- build/VStudio/winfsp_sys.vcxproj.filters | 6 +++++ opt/fsext/inc/winfsp/fsext.h | 2 +- opt/fsext/lib/winfsp-x64.lib | Bin 2270 -> 2270 bytes opt/fsext/lib/winfsp-x86.lib | Bin 2312 -> 2312 bytes src/sys/fsext.c | 28 +++++++++++++++++++++++ 6 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 src/sys/fsext.c diff --git a/build/VStudio/winfsp_sys.vcxproj b/build/VStudio/winfsp_sys.vcxproj index 5b1a4322..2f04da2c 100644 --- a/build/VStudio/winfsp_sys.vcxproj +++ b/build/VStudio/winfsp_sys.vcxproj @@ -101,7 +101,7 @@ - ..\..\src;..\..\inc;%(AdditionalIncludeDirectories) + ..\..\src;..\..\opt\fsext\inc;..\..\inc;%(AdditionalIncludeDirectories) _X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions) @@ -114,7 +114,7 @@ - ..\..\src;..\..\inc;%(AdditionalIncludeDirectories) + ..\..\src;..\..\opt\fsext\inc;..\..\inc;%(AdditionalIncludeDirectories) _X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions) @@ -127,7 +127,7 @@ - ..\..\src;..\..\inc;%(AdditionalIncludeDirectories) + ..\..\src;..\..\opt\fsext\inc;..\..\inc;%(AdditionalIncludeDirectories) _WIN64;_AMD64_;AMD64;%(PreprocessorDefinitions) @@ -140,7 +140,7 @@ - ..\..\src;..\..\inc;%(AdditionalIncludeDirectories) + ..\..\src;..\..\opt\fsext\inc;..\..\inc;%(AdditionalIncludeDirectories) _WIN64;_AMD64_;AMD64;%(PreprocessorDefinitions) @@ -169,6 +169,7 @@ + @@ -188,6 +189,7 @@ + diff --git a/build/VStudio/winfsp_sys.vcxproj.filters b/build/VStudio/winfsp_sys.vcxproj.filters index 3bad7aa5..866dfa01 100644 --- a/build/VStudio/winfsp_sys.vcxproj.filters +++ b/build/VStudio/winfsp_sys.vcxproj.filters @@ -104,6 +104,9 @@ Source + + Source + @@ -112,6 +115,9 @@ Include\winfsp + + Include\winfsp + diff --git a/opt/fsext/inc/winfsp/fsext.h b/opt/fsext/inc/winfsp/fsext.h index 21bbe62a..2d16a515 100644 --- a/opt/fsext/inc/winfsp/fsext.h +++ b/opt/fsext/inc/winfsp/fsext.h @@ -51,7 +51,7 @@ typedef struct UINT32 DeviceExtensionOffset; } FSP_FSEXT_PROVIDER; -FSP_DDI_DEF(NTSTATUS, FspFsextRegisterProvider, FSP_FSEXT_PROVIDER *Provider) +FSP_DDI_DEF(NTSTATUS, FspFsextProviderRegister, FSP_FSEXT_PROVIDER *Provider) FSP_DDI_DEF(NTSTATUS, FspPosixMapSidToUid, PSID Sid, PUINT32 PUid) FSP_DDI_DEF(NTSTATUS, FspPosixMapWindowsToPosixPathEx, PWSTR WindowsPath, char **PPosixPath, diff --git a/opt/fsext/lib/winfsp-x64.lib b/opt/fsext/lib/winfsp-x64.lib index dfc37e8b78005675c6ce49460db0198abaec22cb..a471199d23338a318208572c7668bc324921c365 100644 GIT binary patch delta 318 zcmca7cu#PGEUUSJv8CZ;2R4a`R&DwLMfqi!DXB$4sp*-;C8lN~ukC-*Q3PW;U|`9Gu5WCun|xOw7}r!u+ delta 318 zcmca7cu#PGEUTHJrK!ba2R4a`R&Dx0sp*-;C8lN~ukC-*Q3PW;U|`9Gu5WCun|xOw7}r!u+JXYB%W7_5VqiGgfJ1DeMW;bPQGQuwN@`J1YITALk$pn7o3~oey1JcCt33>STK+M>LtqeN2@It&%2|1_}_6z~#fp%%GUX z63fNNz`!v%kyUzg81r>TgyP8_tO87mS(~F+Igv%{*ubI_*pv~X;*-y_3oC;RQ)d7H i76u$1nas+e2Dd>AX!_(B4oA3v*yJ4?A|SzY999657gxdn delta 311 zcmeAW>JXYB%W7t5X>K&xfJ1DeMW;bfYITALk$pn7o3~oey1JcCt33>STK+M>LtqeN2@It&%2|1_}_6z~#fp%wXcl z63fNNz`!v%kyUzg81r>TgyP8_tO86Xo|~gsIgv%{*ubI_*pv~X;*-y_3oC;RQ)d7H i76u$1nas+e2Dd>AX!_(B4oA3v*yJ4?A|SzY9996YC|A}1 diff --git a/src/sys/fsext.c b/src/sys/fsext.c new file mode 100644 index 00000000..58459c1e --- /dev/null +++ b/src/sys/fsext.c @@ -0,0 +1,28 @@ +/** + * @file sys/fsext.c + * + * @copyright 2015-2019 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. + */ + +#include +#include + +NTSTATUS FspFsextProviderRegister(FSP_FSEXT_PROVIDER *Provider) +{ + return STATUS_TOO_LATE; +}