inc: winfsp: RegGetValueW prototype and disable macro redef warnings

This commit is contained in:
Bill Zissimopoulos 2017-03-11 14:32:12 -08:00
parent 38bcece5ce
commit d907bf2769

View File

@ -26,7 +26,10 @@
#include <windows.h>
#undef WIN32_NO_STATUS
#include <winternl.h>
#pragma warning(push)
#pragma warning(disable:4005) /* macro redefinition */
#include <ntstatus.h>
#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;