include: Add windows.devices.bluetooth.idl file.
[wine.git] / include / memoryapi.h
blob6728b832fa7dd17e093e5a20bda1e976d63d47d1
1 /*
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
19 MemoryRegionInfo
20 } WIN32_MEMORY_INFORMATION_CLASS;
22 typedef struct WIN32_MEMORY_REGION_INFORMATION
24 PVOID AllocationBase;
25 ULONG AllocationProtect;
26 union
28 ULONG Flags;
29 struct
31 ULONG Private : 1;
32 ULONG MappedDataFile : 1;
33 ULONG MappedImage : 1;
34 ULONG MappedPageFile : 1;
35 ULONG MappedPhysical : 1;
36 ULONG DirectMapped : 1;
37 ULONG Reserved : 26;
38 } DUMMYSTRUCTNAME;
39 } DUMMYUNIONNAME;
40 SIZE_T RegionSize;
41 SIZE_T CommitSize;
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);