2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 typedef enum WIN32_MEMORY_INFORMATION_CLASS
20 } WIN32_MEMORY_INFORMATION_CLASS
;
22 typedef struct WIN32_MEMORY_REGION_INFORMATION
25 ULONG AllocationProtect
;
32 ULONG MappedDataFile
: 1;
33 ULONG MappedImage
: 1;
34 ULONG MappedPageFile
: 1;
35 ULONG MappedPhysical
: 1;
36 ULONG DirectMapped
: 1;
42 } WIN32_MEMORY_REGION_INFORMATION
;
44 DWORD WINAPI
DiscardVirtualMemory(void *addr
, SIZE_T size
);
45 BOOL WINAPI
QueryVirtualMemoryInformation(HANDLE process
,const void *addr
,
46 WIN32_MEMORY_INFORMATION_CLASS info_class
, void *info
, SIZE_T size
, SIZE_T
*ret_size
);