mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 11:38:39 -05:00 
			
		
		
		
	inc: winfsp: RegGetValueW prototype and disable macro redef warnings
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user