From d907bf2769475f1cf5c8ac99a7190cbbac0939c3 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sat, 11 Mar 2017 14:32:12 -0800 Subject: [PATCH] inc: winfsp: RegGetValueW prototype and disable macro redef warnings --- inc/winfsp/winfsp.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/inc/winfsp/winfsp.h b/inc/winfsp/winfsp.h index 25dee19d..bb42b79d 100644 --- a/inc/winfsp/winfsp.h +++ b/inc/winfsp/winfsp.h @@ -26,7 +26,10 @@ #include #undef WIN32_NO_STATUS #include +#pragma warning(push) +#pragma warning(disable:4005) /* macro redefinition */ #include +#pragma warning(pop) #if defined(WINFSP_DLL_INTERNAL) #define FSP_API __declspec(dllexport) @@ -1642,6 +1645,18 @@ NTSTATUS FspLoad(PVOID *PModule) #endif #define FSP_DLLPATH "bin\\" FSP_DLLNAME + WINADVAPI + LSTATUS + APIENTRY + RegGetValueW( + HKEY hkey, + LPCWSTR lpSubKey, + LPCWSTR lpValue, + DWORD dwFlags, + LPDWORD pdwType, + PVOID pvData, + LPDWORD pcbData); + WCHAR PathBuf[MAX_PATH]; DWORD Size; HKEY RegKey;