Cygwin: memory: declare extended memory API
Windows 10 1803 introduced an extended memory API allowing to specify memory regions allocations are to be taken off. In preparation of using this API, define the struct MEM_EXTENDED_PARAMETER and friends. Declare and allow to autoload the functions VirtualAlloc2 and NtMapViewOfSectionEx. Introduce a wincap flag has_extended_mem_api. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -39,6 +39,7 @@ struct wincaps
|
||||
unsigned has_con_broken_csi3j : 1;
|
||||
unsigned has_con_broken_il_dl : 1;
|
||||
unsigned has_con_esc_rep : 1;
|
||||
unsigned has_extended_mem_api : 1;
|
||||
};
|
||||
};
|
||||
|
||||
@ -101,6 +102,7 @@ public:
|
||||
bool IMPLEMENT (has_con_broken_csi3j)
|
||||
bool IMPLEMENT (has_con_broken_il_dl)
|
||||
bool IMPLEMENT (has_con_esc_rep)
|
||||
bool IMPLEMENT (has_extended_mem_api)
|
||||
|
||||
void disable_case_sensitive_dirs ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user