在 2018/9/10 15:09, Martin Storsjö 写道:
> This function is only available on Windows 10, and only via the
> api-ms-win-core-memory-* forwarding DLL, it's not available in
> kernel32.dll (checked on Windows 10 1803).
> 
> Signed-off-by: Martin Storsjö <mar...@martin.st>
> ---
>   mingw-w64-headers/include/memoryapi.h | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/mingw-w64-headers/include/memoryapi.h 
> b/mingw-w64-headers/include/memoryapi.h
> index 0a2fbd7..04d1d31 100644
> --- a/mingw-w64-headers/include/memoryapi.h
> +++ b/mingw-w64-headers/include/memoryapi.h
> @@ -61,6 +61,9 @@ extern "C" {
>   #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || 
> defined(WINSTORECOMPAT)
>     WINBASEAPI WINBOOL WINAPI VirtualProtect (LPVOID lpAddress, SIZE_T 
> dwSize, DWORD flNewProtect, PDWORD lpflOldProtect);
>   #endif
> +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) && _WIN32_WINNT >= 0x0A00

WinSDK 10.0.17134.0 uses a different partition here:

```
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)

#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10)

```

Probably this should be changed to `WINAPI_PARTITION_APP | 
WINAPI_PARTITION_SYSTEM`.



The other patch looks okay.



> +  WINBASEAPI WINBOOL WINAPI VirtualProtectFromApp (PVOID lpAddress, SIZE_T 
> dwSize, ULONG flNewProtect, PULONG lpflOldProtect);
> +#endif
>   #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
>   #define FILE_MAP_EXECUTE SECTION_MAP_EXECUTE_EXPLICIT
>   
> 


-- 
Best regards,
LH_Mouse

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to