1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] 2 #[cfg(feature = "Win32_System_Memory_NonVolatile")] 3 pub mod NonVolatile; 4 #[link(name = "windows")] 5 extern "system" { 6 #[cfg(feature = "Win32_Foundation")] AddSecureMemoryCacheCallback(pfncallback: ::core::option::Option<PSECURE_MEMORY_CACHE_CALLBACK>) -> super::super::Foundation::BOOL7 pub fn AddSecureMemoryCacheCallback(pfncallback: ::core::option::Option<PSECURE_MEMORY_CACHE_CALLBACK>) -> super::super::Foundation::BOOL; 8 #[cfg(feature = "Win32_Foundation")] AllocateUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize) -> super::super::Foundation::BOOL9 pub fn AllocateUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize) -> super::super::Foundation::BOOL; 10 #[cfg(feature = "Win32_Foundation")] AllocateUserPhysicalPages2(objecthandle: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, extendedparameters: *mut MEM_EXTENDED_PARAMETER, extendedparametercount: u32) -> super::super::Foundation::BOOL11 pub fn AllocateUserPhysicalPages2(objecthandle: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, extendedparameters: *mut MEM_EXTENDED_PARAMETER, extendedparametercount: u32) -> super::super::Foundation::BOOL; 12 #[cfg(feature = "Win32_Foundation")] AllocateUserPhysicalPagesNuma(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, nndpreferred: u32) -> super::super::Foundation::BOOL13 pub fn AllocateUserPhysicalPagesNuma(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *mut usize, nndpreferred: u32) -> super::super::Foundation::BOOL; 14 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] CreateFileMapping2(file: super::super::Foundation::HANDLE, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, desiredaccess: u32, pageprotection: PAGE_PROTECTION_FLAGS, allocationattributes: u32, maximumsize: u64, name: super::super::Foundation::PWSTR, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> super::super::Foundation::HANDLE15 pub fn CreateFileMapping2(file: super::super::Foundation::HANDLE, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, desiredaccess: u32, pageprotection: PAGE_PROTECTION_FLAGS, allocationattributes: u32, maximumsize: u64, name: super::super::Foundation::PWSTR, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> super::super::Foundation::HANDLE; 16 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] CreateFileMappingA(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE17 pub fn CreateFileMappingA(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; 18 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] CreateFileMappingFromApp(hfile: super::super::Foundation::HANDLE, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, pageprotection: PAGE_PROTECTION_FLAGS, maximumsize: u64, name: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE19 pub fn CreateFileMappingFromApp(hfile: super::super::Foundation::HANDLE, securityattributes: *const super::super::Security::SECURITY_ATTRIBUTES, pageprotection: PAGE_PROTECTION_FLAGS, maximumsize: u64, name: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; 20 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] CreateFileMappingNumaA(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PSTR, nndpreferred: u32) -> super::super::Foundation::HANDLE21 pub fn CreateFileMappingNumaA(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PSTR, nndpreferred: u32) -> super::super::Foundation::HANDLE; 22 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] CreateFileMappingNumaW(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PWSTR, nndpreferred: u32) -> super::super::Foundation::HANDLE23 pub fn CreateFileMappingNumaW(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PWSTR, nndpreferred: u32) -> super::super::Foundation::HANDLE; 24 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] CreateFileMappingW(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE25 pub fn CreateFileMappingW(hfile: super::super::Foundation::HANDLE, lpfilemappingattributes: *const super::super::Security::SECURITY_ATTRIBUTES, flprotect: PAGE_PROTECTION_FLAGS, dwmaximumsizehigh: u32, dwmaximumsizelow: u32, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; 26 #[cfg(feature = "Win32_Foundation")] CreateMemoryResourceNotification(notificationtype: MEMORY_RESOURCE_NOTIFICATION_TYPE) -> super::super::Foundation::HANDLE27 pub fn CreateMemoryResourceNotification(notificationtype: MEMORY_RESOURCE_NOTIFICATION_TYPE) -> super::super::Foundation::HANDLE; DiscardVirtualMemory(virtualaddress: *mut ::core::ffi::c_void, size: usize) -> u3228 pub fn DiscardVirtualMemory(virtualaddress: *mut ::core::ffi::c_void, size: usize) -> u32; 29 #[cfg(feature = "Win32_Foundation")] FlushViewOfFile(lpbaseaddress: *const ::core::ffi::c_void, dwnumberofbytestoflush: usize) -> super::super::Foundation::BOOL30 pub fn FlushViewOfFile(lpbaseaddress: *const ::core::ffi::c_void, dwnumberofbytestoflush: usize) -> super::super::Foundation::BOOL; 31 #[cfg(feature = "Win32_Foundation")] FreeUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *const usize) -> super::super::Foundation::BOOL32 pub fn FreeUserPhysicalPages(hprocess: super::super::Foundation::HANDLE, numberofpages: *mut usize, pagearray: *const usize) -> super::super::Foundation::BOOL; GetLargePageMinimum() -> usize33 pub fn GetLargePageMinimum() -> usize; 34 #[cfg(feature = "Win32_Foundation")] GetMemoryErrorHandlingCapabilities(capabilities: *mut u32) -> super::super::Foundation::BOOL35 pub fn GetMemoryErrorHandlingCapabilities(capabilities: *mut u32) -> super::super::Foundation::BOOL; GetProcessHeap() -> HeapHandle36 pub fn GetProcessHeap() -> HeapHandle; GetProcessHeaps(numberofheaps: u32, processheaps: *mut HeapHandle) -> u3237 pub fn GetProcessHeaps(numberofheaps: u32, processheaps: *mut HeapHandle) -> u32; 38 #[cfg(feature = "Win32_Foundation")] GetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize, flags: *mut u32) -> super::super::Foundation::BOOL39 pub fn GetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, lpminimumworkingsetsize: *mut usize, lpmaximumworkingsetsize: *mut usize, flags: *mut u32) -> super::super::Foundation::BOOL; 40 #[cfg(feature = "Win32_Foundation")] GetSystemFileCacheSize(lpminimumfilecachesize: *mut usize, lpmaximumfilecachesize: *mut usize, lpflags: *mut u32) -> super::super::Foundation::BOOL41 pub fn GetSystemFileCacheSize(lpminimumfilecachesize: *mut usize, lpmaximumfilecachesize: *mut usize, lpflags: *mut u32) -> super::super::Foundation::BOOL; GetWriteWatch(dwflags: u32, lpbaseaddress: *const ::core::ffi::c_void, dwregionsize: usize, lpaddresses: *mut *mut ::core::ffi::c_void, lpdwcount: *mut usize, lpdwgranularity: *mut u32) -> u3242 pub fn GetWriteWatch(dwflags: u32, lpbaseaddress: *const ::core::ffi::c_void, dwregionsize: usize, lpaddresses: *mut *mut ::core::ffi::c_void, lpdwcount: *mut usize, lpdwgranularity: *mut u32) -> u32; GlobalAlloc(uflags: GLOBAL_ALLOC_FLAGS, dwbytes: usize) -> isize43 pub fn GlobalAlloc(uflags: GLOBAL_ALLOC_FLAGS, dwbytes: usize) -> isize; GlobalFlags(hmem: isize) -> u3244 pub fn GlobalFlags(hmem: isize) -> u32; GlobalFree(hmem: isize) -> isize45 pub fn GlobalFree(hmem: isize) -> isize; GlobalHandle(pmem: *const ::core::ffi::c_void) -> isize46 pub fn GlobalHandle(pmem: *const ::core::ffi::c_void) -> isize; GlobalLock(hmem: isize) -> *mut ::core::ffi::c_void47 pub fn GlobalLock(hmem: isize) -> *mut ::core::ffi::c_void; GlobalReAlloc(hmem: isize, dwbytes: usize, uflags: u32) -> isize48 pub fn GlobalReAlloc(hmem: isize, dwbytes: usize, uflags: u32) -> isize; GlobalSize(hmem: isize) -> usize49 pub fn GlobalSize(hmem: isize) -> usize; 50 #[cfg(feature = "Win32_Foundation")] GlobalUnlock(hmem: isize) -> super::super::Foundation::BOOL51 pub fn GlobalUnlock(hmem: isize) -> super::super::Foundation::BOOL; HeapAlloc(hheap: HeapHandle, dwflags: HEAP_FLAGS, dwbytes: usize) -> *mut ::core::ffi::c_void52 pub fn HeapAlloc(hheap: HeapHandle, dwflags: HEAP_FLAGS, dwbytes: usize) -> *mut ::core::ffi::c_void; HeapCompact(hheap: HeapHandle, dwflags: HEAP_FLAGS) -> usize53 pub fn HeapCompact(hheap: HeapHandle, dwflags: HEAP_FLAGS) -> usize; HeapCreate(floptions: HEAP_FLAGS, dwinitialsize: usize, dwmaximumsize: usize) -> HeapHandle54 pub fn HeapCreate(floptions: HEAP_FLAGS, dwinitialsize: usize, dwmaximumsize: usize) -> HeapHandle; 55 #[cfg(feature = "Win32_Foundation")] HeapDestroy(hheap: HeapHandle) -> super::super::Foundation::BOOL56 pub fn HeapDestroy(hheap: HeapHandle) -> super::super::Foundation::BOOL; 57 #[cfg(feature = "Win32_Foundation")] HeapFree(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL58 pub fn HeapFree(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; 59 #[cfg(feature = "Win32_Foundation")] HeapLock(hheap: HeapHandle) -> super::super::Foundation::BOOL60 pub fn HeapLock(hheap: HeapHandle) -> super::super::Foundation::BOOL; 61 #[cfg(feature = "Win32_Foundation")] HeapQueryInformation(heaphandle: HeapHandle, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: *mut ::core::ffi::c_void, heapinformationlength: usize, returnlength: *mut usize) -> super::super::Foundation::BOOL62 pub fn HeapQueryInformation(heaphandle: HeapHandle, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: *mut ::core::ffi::c_void, heapinformationlength: usize, returnlength: *mut usize) -> super::super::Foundation::BOOL; HeapReAlloc(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void, dwbytes: usize) -> *mut ::core::ffi::c_void63 pub fn HeapReAlloc(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void, dwbytes: usize) -> *mut ::core::ffi::c_void; 64 #[cfg(feature = "Win32_Foundation")] HeapSetInformation(heaphandle: HeapHandle, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: *const ::core::ffi::c_void, heapinformationlength: usize) -> super::super::Foundation::BOOL65 pub fn HeapSetInformation(heaphandle: HeapHandle, heapinformationclass: HEAP_INFORMATION_CLASS, heapinformation: *const ::core::ffi::c_void, heapinformationlength: usize) -> super::super::Foundation::BOOL; HeapSize(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void) -> usize66 pub fn HeapSize(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void) -> usize; 67 #[cfg(feature = "Win32_Foundation")] HeapSummary(hheap: super::super::Foundation::HANDLE, dwflags: u32, lpsummary: *mut HEAP_SUMMARY) -> super::super::Foundation::BOOL68 pub fn HeapSummary(hheap: super::super::Foundation::HANDLE, dwflags: u32, lpsummary: *mut HEAP_SUMMARY) -> super::super::Foundation::BOOL; 69 #[cfg(feature = "Win32_Foundation")] HeapUnlock(hheap: HeapHandle) -> super::super::Foundation::BOOL70 pub fn HeapUnlock(hheap: HeapHandle) -> super::super::Foundation::BOOL; 71 #[cfg(feature = "Win32_Foundation")] HeapValidate(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL72 pub fn HeapValidate(hheap: HeapHandle, dwflags: HEAP_FLAGS, lpmem: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; 73 #[cfg(feature = "Win32_Foundation")] HeapWalk(hheap: HeapHandle, lpentry: *mut PROCESS_HEAP_ENTRY) -> super::super::Foundation::BOOL74 pub fn HeapWalk(hheap: HeapHandle, lpentry: *mut PROCESS_HEAP_ENTRY) -> super::super::Foundation::BOOL; 75 #[cfg(feature = "Win32_Foundation")] IsBadCodePtr(lpfn: ::core::option::Option<super::super::Foundation::FARPROC>) -> super::super::Foundation::BOOL76 pub fn IsBadCodePtr(lpfn: ::core::option::Option<super::super::Foundation::FARPROC>) -> super::super::Foundation::BOOL; 77 #[cfg(feature = "Win32_Foundation")] IsBadReadPtr(lp: *const ::core::ffi::c_void, ucb: usize) -> super::super::Foundation::BOOL78 pub fn IsBadReadPtr(lp: *const ::core::ffi::c_void, ucb: usize) -> super::super::Foundation::BOOL; 79 #[cfg(feature = "Win32_Foundation")] IsBadStringPtrA(lpsz: super::super::Foundation::PSTR, ucchmax: usize) -> super::super::Foundation::BOOL80 pub fn IsBadStringPtrA(lpsz: super::super::Foundation::PSTR, ucchmax: usize) -> super::super::Foundation::BOOL; 81 #[cfg(feature = "Win32_Foundation")] IsBadStringPtrW(lpsz: super::super::Foundation::PWSTR, ucchmax: usize) -> super::super::Foundation::BOOL82 pub fn IsBadStringPtrW(lpsz: super::super::Foundation::PWSTR, ucchmax: usize) -> super::super::Foundation::BOOL; 83 #[cfg(feature = "Win32_Foundation")] IsBadWritePtr(lp: *const ::core::ffi::c_void, ucb: usize) -> super::super::Foundation::BOOL84 pub fn IsBadWritePtr(lp: *const ::core::ffi::c_void, ucb: usize) -> super::super::Foundation::BOOL; LocalAlloc(uflags: LOCAL_ALLOC_FLAGS, ubytes: usize) -> isize85 pub fn LocalAlloc(uflags: LOCAL_ALLOC_FLAGS, ubytes: usize) -> isize; LocalFlags(hmem: isize) -> u3286 pub fn LocalFlags(hmem: isize) -> u32; LocalFree(hmem: isize) -> isize87 pub fn LocalFree(hmem: isize) -> isize; LocalHandle(pmem: *const ::core::ffi::c_void) -> isize88 pub fn LocalHandle(pmem: *const ::core::ffi::c_void) -> isize; LocalLock(hmem: isize) -> *mut ::core::ffi::c_void89 pub fn LocalLock(hmem: isize) -> *mut ::core::ffi::c_void; LocalReAlloc(hmem: isize, ubytes: usize, uflags: u32) -> isize90 pub fn LocalReAlloc(hmem: isize, ubytes: usize, uflags: u32) -> isize; LocalSize(hmem: isize) -> usize91 pub fn LocalSize(hmem: isize) -> usize; 92 #[cfg(feature = "Win32_Foundation")] LocalUnlock(hmem: isize) -> super::super::Foundation::BOOL93 pub fn LocalUnlock(hmem: isize) -> super::super::Foundation::BOOL; 94 #[cfg(feature = "Win32_Foundation")] MapUserPhysicalPages(virtualaddress: *const ::core::ffi::c_void, numberofpages: usize, pagearray: *const usize) -> super::super::Foundation::BOOL95 pub fn MapUserPhysicalPages(virtualaddress: *const ::core::ffi::c_void, numberofpages: usize, pagearray: *const usize) -> super::super::Foundation::BOOL; 96 #[cfg(feature = "Win32_Foundation")] MapUserPhysicalPagesScatter(virtualaddresses: *const *const ::core::ffi::c_void, numberofpages: usize, pagearray: *const usize) -> super::super::Foundation::BOOL97 pub fn MapUserPhysicalPagesScatter(virtualaddresses: *const *const ::core::ffi::c_void, numberofpages: usize, pagearray: *const usize) -> super::super::Foundation::BOOL; 98 #[cfg(feature = "Win32_Foundation")] MapViewOfFile(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize) -> *mut ::core::ffi::c_void99 pub fn MapViewOfFile(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize) -> *mut ::core::ffi::c_void; 100 #[cfg(feature = "Win32_Foundation")] MapViewOfFile3(filemapping: super::super::Foundation::HANDLE, process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, offset: u64, viewsize: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void101 pub fn MapViewOfFile3(filemapping: super::super::Foundation::HANDLE, process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, offset: u64, viewsize: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void; 102 #[cfg(feature = "Win32_Foundation")] MapViewOfFile3FromApp(filemapping: super::super::Foundation::HANDLE, process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, offset: u64, viewsize: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void103 pub fn MapViewOfFile3FromApp(filemapping: super::super::Foundation::HANDLE, process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, offset: u64, viewsize: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void; 104 #[cfg(feature = "Win32_Foundation")] MapViewOfFileEx(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void105 pub fn MapViewOfFileEx(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: *const ::core::ffi::c_void) -> *mut ::core::ffi::c_void; 106 #[cfg(feature = "Win32_Foundation")] MapViewOfFileExNuma(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: *const ::core::ffi::c_void, nndpreferred: u32) -> *mut ::core::ffi::c_void107 pub fn MapViewOfFileExNuma(hfilemappingobject: super::super::Foundation::HANDLE, dwdesiredaccess: FILE_MAP, dwfileoffsethigh: u32, dwfileoffsetlow: u32, dwnumberofbytestomap: usize, lpbaseaddress: *const ::core::ffi::c_void, nndpreferred: u32) -> *mut ::core::ffi::c_void; 108 #[cfg(feature = "Win32_Foundation")] MapViewOfFileFromApp(hfilemappingobject: super::super::Foundation::HANDLE, desiredaccess: FILE_MAP, fileoffset: u64, numberofbytestomap: usize) -> *mut ::core::ffi::c_void109 pub fn MapViewOfFileFromApp(hfilemappingobject: super::super::Foundation::HANDLE, desiredaccess: FILE_MAP, fileoffset: u64, numberofbytestomap: usize) -> *mut ::core::ffi::c_void; 110 #[cfg(feature = "Win32_Foundation")] MapViewOfFileNuma2(filemappinghandle: super::super::Foundation::HANDLE, processhandle: super::super::Foundation::HANDLE, offset: u64, baseaddress: *const ::core::ffi::c_void, viewsize: usize, allocationtype: u32, pageprotection: u32, preferrednode: u32) -> *mut ::core::ffi::c_void111 pub fn MapViewOfFileNuma2(filemappinghandle: super::super::Foundation::HANDLE, processhandle: super::super::Foundation::HANDLE, offset: u64, baseaddress: *const ::core::ffi::c_void, viewsize: usize, allocationtype: u32, pageprotection: u32, preferrednode: u32) -> *mut ::core::ffi::c_void; OfferVirtualMemory(virtualaddress: *mut ::core::ffi::c_void, size: usize, priority: OFFER_PRIORITY) -> u32112 pub fn OfferVirtualMemory(virtualaddress: *mut ::core::ffi::c_void, size: usize, priority: OFFER_PRIORITY) -> u32; 113 #[cfg(feature = "Win32_Foundation")] OpenDedicatedMemoryPartition(partition: super::super::Foundation::HANDLE, dedicatedmemorytypeid: u64, desiredaccess: u32, inherithandle: super::super::Foundation::BOOL) -> super::super::Foundation::HANDLE114 pub fn OpenDedicatedMemoryPartition(partition: super::super::Foundation::HANDLE, dedicatedmemorytypeid: u64, desiredaccess: u32, inherithandle: super::super::Foundation::BOOL) -> super::super::Foundation::HANDLE; 115 #[cfg(feature = "Win32_Foundation")] OpenFileMappingA(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE116 pub fn OpenFileMappingA(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PSTR) -> super::super::Foundation::HANDLE; 117 #[cfg(feature = "Win32_Foundation")] OpenFileMappingFromApp(desiredaccess: u32, inherithandle: super::super::Foundation::BOOL, name: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE118 pub fn OpenFileMappingFromApp(desiredaccess: u32, inherithandle: super::super::Foundation::BOOL, name: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; 119 #[cfg(feature = "Win32_Foundation")] OpenFileMappingW(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE120 pub fn OpenFileMappingW(dwdesiredaccess: u32, binherithandle: super::super::Foundation::BOOL, lpname: super::super::Foundation::PWSTR) -> super::super::Foundation::HANDLE; 121 #[cfg(feature = "Win32_Foundation")] PrefetchVirtualMemory(hprocess: super::super::Foundation::HANDLE, numberofentries: usize, virtualaddresses: *const WIN32_MEMORY_RANGE_ENTRY, flags: u32) -> super::super::Foundation::BOOL122 pub fn PrefetchVirtualMemory(hprocess: super::super::Foundation::HANDLE, numberofentries: usize, virtualaddresses: *const WIN32_MEMORY_RANGE_ENTRY, flags: u32) -> super::super::Foundation::BOOL; 123 #[cfg(feature = "Win32_Foundation")] QueryMemoryResourceNotification(resourcenotificationhandle: super::super::Foundation::HANDLE, resourcestate: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL124 pub fn QueryMemoryResourceNotification(resourcenotificationhandle: super::super::Foundation::HANDLE, resourcestate: *mut super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; 125 #[cfg(feature = "Win32_Foundation")] QueryPartitionInformation(partition: super::super::Foundation::HANDLE, partitioninformationclass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation: *mut ::core::ffi::c_void, partitioninformationlength: u32) -> super::super::Foundation::BOOL126 pub fn QueryPartitionInformation(partition: super::super::Foundation::HANDLE, partitioninformationclass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, partitioninformation: *mut ::core::ffi::c_void, partitioninformationlength: u32) -> super::super::Foundation::BOOL; 127 #[cfg(feature = "Win32_Foundation")] QueryVirtualMemoryInformation(process: super::super::Foundation::HANDLE, virtualaddress: *const ::core::ffi::c_void, memoryinformationclass: WIN32_MEMORY_INFORMATION_CLASS, memoryinformation: *mut ::core::ffi::c_void, memoryinformationsize: usize, returnsize: *mut usize) -> super::super::Foundation::BOOL128 pub fn QueryVirtualMemoryInformation(process: super::super::Foundation::HANDLE, virtualaddress: *const ::core::ffi::c_void, memoryinformationclass: WIN32_MEMORY_INFORMATION_CLASS, memoryinformation: *mut ::core::ffi::c_void, memoryinformationsize: usize, returnsize: *mut usize) -> super::super::Foundation::BOOL; ReclaimVirtualMemory(virtualaddress: *const ::core::ffi::c_void, size: usize) -> u32129 pub fn ReclaimVirtualMemory(virtualaddress: *const ::core::ffi::c_void, size: usize) -> u32; RegisterBadMemoryNotification(callback: ::core::option::Option<PBAD_MEMORY_CALLBACK_ROUTINE>) -> *mut ::core::ffi::c_void130 pub fn RegisterBadMemoryNotification(callback: ::core::option::Option<PBAD_MEMORY_CALLBACK_ROUTINE>) -> *mut ::core::ffi::c_void; 131 #[cfg(feature = "Win32_Foundation")] RemoveSecureMemoryCacheCallback(pfncallback: ::core::option::Option<PSECURE_MEMORY_CACHE_CALLBACK>) -> super::super::Foundation::BOOL132 pub fn RemoveSecureMemoryCacheCallback(pfncallback: ::core::option::Option<PSECURE_MEMORY_CACHE_CALLBACK>) -> super::super::Foundation::BOOL; ResetWriteWatch(lpbaseaddress: *const ::core::ffi::c_void, dwregionsize: usize) -> u32133 pub fn ResetWriteWatch(lpbaseaddress: *const ::core::ffi::c_void, dwregionsize: usize) -> u32; RtlCompareMemory(source1: *const ::core::ffi::c_void, source2: *const ::core::ffi::c_void, length: usize) -> usize134 pub fn RtlCompareMemory(source1: *const ::core::ffi::c_void, source2: *const ::core::ffi::c_void, length: usize) -> usize; RtlCrc32(buffer: *const ::core::ffi::c_void, size: usize, initialcrc: u32) -> u32135 pub fn RtlCrc32(buffer: *const ::core::ffi::c_void, size: usize, initialcrc: u32) -> u32; RtlCrc64(buffer: *const ::core::ffi::c_void, size: usize, initialcrc: u64) -> u64136 pub fn RtlCrc64(buffer: *const ::core::ffi::c_void, size: usize, initialcrc: u64) -> u64; 137 #[cfg(feature = "Win32_Foundation")] RtlIsZeroMemory(buffer: *const ::core::ffi::c_void, length: usize) -> super::super::Foundation::BOOLEAN138 pub fn RtlIsZeroMemory(buffer: *const ::core::ffi::c_void, length: usize) -> super::super::Foundation::BOOLEAN; 139 #[cfg(feature = "Win32_Foundation")] SetProcessValidCallTargets(hprocess: super::super::Foundation::HANDLE, virtualaddress: *const ::core::ffi::c_void, regionsize: usize, numberofoffsets: u32, offsetinformation: *mut CFG_CALL_TARGET_INFO) -> super::super::Foundation::BOOL140 pub fn SetProcessValidCallTargets(hprocess: super::super::Foundation::HANDLE, virtualaddress: *const ::core::ffi::c_void, regionsize: usize, numberofoffsets: u32, offsetinformation: *mut CFG_CALL_TARGET_INFO) -> super::super::Foundation::BOOL; 141 #[cfg(feature = "Win32_Foundation")] SetProcessValidCallTargetsForMappedView(process: super::super::Foundation::HANDLE, virtualaddress: *const ::core::ffi::c_void, regionsize: usize, numberofoffsets: u32, offsetinformation: *mut CFG_CALL_TARGET_INFO, section: super::super::Foundation::HANDLE, expectedfileoffset: u64) -> super::super::Foundation::BOOL142 pub fn SetProcessValidCallTargetsForMappedView(process: super::super::Foundation::HANDLE, virtualaddress: *const ::core::ffi::c_void, regionsize: usize, numberofoffsets: u32, offsetinformation: *mut CFG_CALL_TARGET_INFO, section: super::super::Foundation::HANDLE, expectedfileoffset: u64) -> super::super::Foundation::BOOL; 143 #[cfg(feature = "Win32_Foundation")] SetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize, flags: u32) -> super::super::Foundation::BOOL144 pub fn SetProcessWorkingSetSizeEx(hprocess: super::super::Foundation::HANDLE, dwminimumworkingsetsize: usize, dwmaximumworkingsetsize: usize, flags: u32) -> super::super::Foundation::BOOL; 145 #[cfg(feature = "Win32_Foundation")] SetSystemFileCacheSize(minimumfilecachesize: usize, maximumfilecachesize: usize, flags: u32) -> super::super::Foundation::BOOL146 pub fn SetSystemFileCacheSize(minimumfilecachesize: usize, maximumfilecachesize: usize, flags: u32) -> super::super::Foundation::BOOL; 147 #[cfg(feature = "Win32_Foundation")] UnmapViewOfFile(lpbaseaddress: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL148 pub fn UnmapViewOfFile(lpbaseaddress: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; 149 #[cfg(feature = "Win32_Foundation")] UnmapViewOfFile2(process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation::BOOL150 pub fn UnmapViewOfFile2(process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation::BOOL; 151 #[cfg(feature = "Win32_Foundation")] UnmapViewOfFileEx(baseaddress: *const ::core::ffi::c_void, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation::BOOL152 pub fn UnmapViewOfFileEx(baseaddress: *const ::core::ffi::c_void, unmapflags: UNMAP_VIEW_OF_FILE_FLAGS) -> super::super::Foundation::BOOL; 153 #[cfg(feature = "Win32_Foundation")] UnregisterBadMemoryNotification(registrationhandle: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL154 pub fn UnregisterBadMemoryNotification(registrationhandle: *const ::core::ffi::c_void) -> super::super::Foundation::BOOL; VirtualAlloc(lpaddress: *const ::core::ffi::c_void, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: PAGE_PROTECTION_FLAGS) -> *mut ::core::ffi::c_void155 pub fn VirtualAlloc(lpaddress: *const ::core::ffi::c_void, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: PAGE_PROTECTION_FLAGS) -> *mut ::core::ffi::c_void; 156 #[cfg(feature = "Win32_Foundation")] VirtualAlloc2(process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void157 pub fn VirtualAlloc2(process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void; 158 #[cfg(feature = "Win32_Foundation")] VirtualAlloc2FromApp(process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void159 pub fn VirtualAlloc2FromApp(process: super::super::Foundation::HANDLE, baseaddress: *const ::core::ffi::c_void, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, pageprotection: u32, extendedparameters: *mut MEM_EXTENDED_PARAMETER, parametercount: u32) -> *mut ::core::ffi::c_void; 160 #[cfg(feature = "Win32_Foundation")] VirtualAllocEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: PAGE_PROTECTION_FLAGS) -> *mut ::core::ffi::c_void161 pub fn VirtualAllocEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: PAGE_PROTECTION_FLAGS) -> *mut ::core::ffi::c_void; 162 #[cfg(feature = "Win32_Foundation")] VirtualAllocExNuma(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: u32, nndpreferred: u32) -> *mut ::core::ffi::c_void163 pub fn VirtualAllocExNuma(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, dwsize: usize, flallocationtype: VIRTUAL_ALLOCATION_TYPE, flprotect: u32, nndpreferred: u32) -> *mut ::core::ffi::c_void; VirtualAllocFromApp(baseaddress: *const ::core::ffi::c_void, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, protection: u32) -> *mut ::core::ffi::c_void164 pub fn VirtualAllocFromApp(baseaddress: *const ::core::ffi::c_void, size: usize, allocationtype: VIRTUAL_ALLOCATION_TYPE, protection: u32) -> *mut ::core::ffi::c_void; 165 #[cfg(feature = "Win32_Foundation")] VirtualFree(lpaddress: *mut ::core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> super::super::Foundation::BOOL166 pub fn VirtualFree(lpaddress: *mut ::core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> super::super::Foundation::BOOL; 167 #[cfg(feature = "Win32_Foundation")] VirtualFreeEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *mut ::core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> super::super::Foundation::BOOL168 pub fn VirtualFreeEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *mut ::core::ffi::c_void, dwsize: usize, dwfreetype: VIRTUAL_FREE_TYPE) -> super::super::Foundation::BOOL; 169 #[cfg(feature = "Win32_Foundation")] VirtualLock(lpaddress: *const ::core::ffi::c_void, dwsize: usize) -> super::super::Foundation::BOOL170 pub fn VirtualLock(lpaddress: *const ::core::ffi::c_void, dwsize: usize) -> super::super::Foundation::BOOL; 171 #[cfg(feature = "Win32_Foundation")] VirtualProtect(lpaddress: *const ::core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation::BOOL172 pub fn VirtualProtect(lpaddress: *const ::core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation::BOOL; 173 #[cfg(feature = "Win32_Foundation")] VirtualProtectEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation::BOOL174 pub fn VirtualProtectEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, dwsize: usize, flnewprotect: PAGE_PROTECTION_FLAGS, lpfloldprotect: *mut PAGE_PROTECTION_FLAGS) -> super::super::Foundation::BOOL; 175 #[cfg(feature = "Win32_Foundation")] VirtualProtectFromApp(address: *const ::core::ffi::c_void, size: usize, newprotection: u32, oldprotection: *mut u32) -> super::super::Foundation::BOOL176 pub fn VirtualProtectFromApp(address: *const ::core::ffi::c_void, size: usize, newprotection: u32, oldprotection: *mut u32) -> super::super::Foundation::BOOL; VirtualQuery(lpaddress: *const ::core::ffi::c_void, lpbuffer: *mut MEMORY_BASIC_INFORMATION, dwlength: usize) -> usize177 pub fn VirtualQuery(lpaddress: *const ::core::ffi::c_void, lpbuffer: *mut MEMORY_BASIC_INFORMATION, dwlength: usize) -> usize; 178 #[cfg(feature = "Win32_Foundation")] VirtualQueryEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, lpbuffer: *mut MEMORY_BASIC_INFORMATION, dwlength: usize) -> usize179 pub fn VirtualQueryEx(hprocess: super::super::Foundation::HANDLE, lpaddress: *const ::core::ffi::c_void, lpbuffer: *mut MEMORY_BASIC_INFORMATION, dwlength: usize) -> usize; 180 #[cfg(feature = "Win32_Foundation")] VirtualUnlock(lpaddress: *const ::core::ffi::c_void, dwsize: usize) -> super::super::Foundation::BOOL181 pub fn VirtualUnlock(lpaddress: *const ::core::ffi::c_void, dwsize: usize) -> super::super::Foundation::BOOL; 182 #[cfg(feature = "Win32_Foundation")] VirtualUnlockEx(process: super::super::Foundation::HANDLE, address: *const ::core::ffi::c_void, size: usize) -> super::super::Foundation::BOOL183 pub fn VirtualUnlockEx(process: super::super::Foundation::HANDLE, address: *const ::core::ffi::c_void, size: usize) -> super::super::Foundation::BOOL; 184 } 185 #[repr(C)] 186 pub struct CFG_CALL_TARGET_INFO { 187 pub Offset: usize, 188 pub Flags: usize, 189 } 190 impl ::core::marker::Copy for CFG_CALL_TARGET_INFO {} 191 impl ::core::clone::Clone for CFG_CALL_TARGET_INFO { clone(&self) -> Self192 fn clone(&self) -> Self { 193 *self 194 } 195 } 196 pub const FILE_CACHE_MAX_HARD_DISABLE: u32 = 2u32; 197 pub const FILE_CACHE_MAX_HARD_ENABLE: u32 = 1u32; 198 pub const FILE_CACHE_MIN_HARD_DISABLE: u32 = 8u32; 199 pub const FILE_CACHE_MIN_HARD_ENABLE: u32 = 4u32; 200 pub type FILE_MAP = u32; 201 pub const FILE_MAP_WRITE: FILE_MAP = 2u32; 202 pub const FILE_MAP_READ: FILE_MAP = 4u32; 203 pub const FILE_MAP_ALL_ACCESS: FILE_MAP = 983071u32; 204 pub const FILE_MAP_EXECUTE: FILE_MAP = 32u32; 205 pub const FILE_MAP_COPY: FILE_MAP = 1u32; 206 pub const FILE_MAP_RESERVE: FILE_MAP = 2147483648u32; 207 pub const FILE_MAP_TARGETS_INVALID: FILE_MAP = 1073741824u32; 208 pub const FILE_MAP_LARGE_PAGES: FILE_MAP = 536870912u32; 209 pub type GLOBAL_ALLOC_FLAGS = u32; 210 pub const GHND: GLOBAL_ALLOC_FLAGS = 66u32; 211 pub const GMEM_FIXED: GLOBAL_ALLOC_FLAGS = 0u32; 212 pub const GMEM_MOVEABLE: GLOBAL_ALLOC_FLAGS = 2u32; 213 pub const GMEM_ZEROINIT: GLOBAL_ALLOC_FLAGS = 64u32; 214 pub const GPTR: GLOBAL_ALLOC_FLAGS = 64u32; 215 pub type HEAP_FLAGS = u32; 216 pub const HEAP_NONE: HEAP_FLAGS = 0u32; 217 pub const HEAP_NO_SERIALIZE: HEAP_FLAGS = 1u32; 218 pub const HEAP_GROWABLE: HEAP_FLAGS = 2u32; 219 pub const HEAP_GENERATE_EXCEPTIONS: HEAP_FLAGS = 4u32; 220 pub const HEAP_ZERO_MEMORY: HEAP_FLAGS = 8u32; 221 pub const HEAP_REALLOC_IN_PLACE_ONLY: HEAP_FLAGS = 16u32; 222 pub const HEAP_TAIL_CHECKING_ENABLED: HEAP_FLAGS = 32u32; 223 pub const HEAP_FREE_CHECKING_ENABLED: HEAP_FLAGS = 64u32; 224 pub const HEAP_DISABLE_COALESCE_ON_FREE: HEAP_FLAGS = 128u32; 225 pub const HEAP_CREATE_ALIGN_16: HEAP_FLAGS = 65536u32; 226 pub const HEAP_CREATE_ENABLE_TRACING: HEAP_FLAGS = 131072u32; 227 pub const HEAP_CREATE_ENABLE_EXECUTE: HEAP_FLAGS = 262144u32; 228 pub const HEAP_MAXIMUM_TAG: HEAP_FLAGS = 4095u32; 229 pub const HEAP_PSEUDO_TAG_FLAG: HEAP_FLAGS = 32768u32; 230 pub const HEAP_TAG_SHIFT: HEAP_FLAGS = 18u32; 231 pub const HEAP_CREATE_SEGMENT_HEAP: HEAP_FLAGS = 256u32; 232 pub const HEAP_CREATE_HARDENED: HEAP_FLAGS = 512u32; 233 pub type HEAP_INFORMATION_CLASS = i32; 234 pub const HeapCompatibilityInformation: HEAP_INFORMATION_CLASS = 0i32; 235 pub const HeapEnableTerminationOnCorruption: HEAP_INFORMATION_CLASS = 1i32; 236 pub const HeapOptimizeResources: HEAP_INFORMATION_CLASS = 3i32; 237 pub const HeapTag: HEAP_INFORMATION_CLASS = 7i32; 238 #[repr(C)] 239 pub struct HEAP_SUMMARY { 240 pub cb: u32, 241 pub cbAllocated: usize, 242 pub cbCommitted: usize, 243 pub cbReserved: usize, 244 pub cbMaxReserve: usize, 245 } 246 impl ::core::marker::Copy for HEAP_SUMMARY {} 247 impl ::core::clone::Clone for HEAP_SUMMARY { clone(&self) -> Self248 fn clone(&self) -> Self { 249 *self 250 } 251 } 252 pub type HeapHandle = isize; 253 pub type LOCAL_ALLOC_FLAGS = u32; 254 pub const LHND: LOCAL_ALLOC_FLAGS = 66u32; 255 pub const LMEM_FIXED: LOCAL_ALLOC_FLAGS = 0u32; 256 pub const LMEM_MOVEABLE: LOCAL_ALLOC_FLAGS = 2u32; 257 pub const LMEM_ZEROINIT: LOCAL_ALLOC_FLAGS = 64u32; 258 pub const LPTR: LOCAL_ALLOC_FLAGS = 64u32; 259 pub const NONZEROLHND: LOCAL_ALLOC_FLAGS = 2u32; 260 pub const NONZEROLPTR: LOCAL_ALLOC_FLAGS = 0u32; 261 pub const MEHC_PATROL_SCRUBBER_PRESENT: u32 = 1u32; 262 #[repr(C)] 263 #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] 264 pub struct MEMORY_BASIC_INFORMATION { 265 pub BaseAddress: *mut ::core::ffi::c_void, 266 pub AllocationBase: *mut ::core::ffi::c_void, 267 pub AllocationProtect: PAGE_PROTECTION_FLAGS, 268 pub PartitionId: u16, 269 pub RegionSize: usize, 270 pub State: VIRTUAL_ALLOCATION_TYPE, 271 pub Protect: PAGE_PROTECTION_FLAGS, 272 pub Type: PAGE_TYPE, 273 } 274 #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] 275 impl ::core::marker::Copy for MEMORY_BASIC_INFORMATION {} 276 #[cfg(any(target_arch = "x86_64", target_arch = "aarch64",))] 277 impl ::core::clone::Clone for MEMORY_BASIC_INFORMATION { clone(&self) -> Self278 fn clone(&self) -> Self { 279 *self 280 } 281 } 282 #[repr(C)] 283 #[cfg(any(target_arch = "x86",))] 284 pub struct MEMORY_BASIC_INFORMATION { 285 pub BaseAddress: *mut ::core::ffi::c_void, 286 pub AllocationBase: *mut ::core::ffi::c_void, 287 pub AllocationProtect: PAGE_PROTECTION_FLAGS, 288 pub RegionSize: usize, 289 pub State: VIRTUAL_ALLOCATION_TYPE, 290 pub Protect: PAGE_PROTECTION_FLAGS, 291 pub Type: PAGE_TYPE, 292 } 293 #[cfg(any(target_arch = "x86",))] 294 impl ::core::marker::Copy for MEMORY_BASIC_INFORMATION {} 295 #[cfg(any(target_arch = "x86",))] 296 impl ::core::clone::Clone for MEMORY_BASIC_INFORMATION { clone(&self) -> Self297 fn clone(&self) -> Self { 298 *self 299 } 300 } 301 #[repr(C)] 302 pub struct MEMORY_BASIC_INFORMATION32 { 303 pub BaseAddress: u32, 304 pub AllocationBase: u32, 305 pub AllocationProtect: PAGE_PROTECTION_FLAGS, 306 pub RegionSize: u32, 307 pub State: VIRTUAL_ALLOCATION_TYPE, 308 pub Protect: PAGE_PROTECTION_FLAGS, 309 pub Type: PAGE_TYPE, 310 } 311 impl ::core::marker::Copy for MEMORY_BASIC_INFORMATION32 {} 312 impl ::core::clone::Clone for MEMORY_BASIC_INFORMATION32 { clone(&self) -> Self313 fn clone(&self) -> Self { 314 *self 315 } 316 } 317 #[repr(C)] 318 pub struct MEMORY_BASIC_INFORMATION64 { 319 pub BaseAddress: u64, 320 pub AllocationBase: u64, 321 pub AllocationProtect: PAGE_PROTECTION_FLAGS, 322 pub __alignment1: u32, 323 pub RegionSize: u64, 324 pub State: VIRTUAL_ALLOCATION_TYPE, 325 pub Protect: PAGE_PROTECTION_FLAGS, 326 pub Type: PAGE_TYPE, 327 pub __alignment2: u32, 328 } 329 impl ::core::marker::Copy for MEMORY_BASIC_INFORMATION64 {} 330 impl ::core::clone::Clone for MEMORY_BASIC_INFORMATION64 { clone(&self) -> Self331 fn clone(&self) -> Self { 332 *self 333 } 334 } 335 pub type MEMORY_RESOURCE_NOTIFICATION_TYPE = i32; 336 pub const LowMemoryResourceNotification: MEMORY_RESOURCE_NOTIFICATION_TYPE = 0i32; 337 pub const HighMemoryResourceNotification: MEMORY_RESOURCE_NOTIFICATION_TYPE = 1i32; 338 #[repr(C)] 339 #[cfg(feature = "Win32_Foundation")] 340 pub struct MEM_EXTENDED_PARAMETER { 341 pub Anonymous1: MEM_EXTENDED_PARAMETER_0, 342 pub Anonymous2: MEM_EXTENDED_PARAMETER_1, 343 } 344 #[cfg(feature = "Win32_Foundation")] 345 impl ::core::marker::Copy for MEM_EXTENDED_PARAMETER {} 346 #[cfg(feature = "Win32_Foundation")] 347 impl ::core::clone::Clone for MEM_EXTENDED_PARAMETER { clone(&self) -> Self348 fn clone(&self) -> Self { 349 *self 350 } 351 } 352 #[repr(C)] 353 #[cfg(feature = "Win32_Foundation")] 354 pub struct MEM_EXTENDED_PARAMETER_0 { 355 pub _bitfield: u64, 356 } 357 #[cfg(feature = "Win32_Foundation")] 358 impl ::core::marker::Copy for MEM_EXTENDED_PARAMETER_0 {} 359 #[cfg(feature = "Win32_Foundation")] 360 impl ::core::clone::Clone for MEM_EXTENDED_PARAMETER_0 { clone(&self) -> Self361 fn clone(&self) -> Self { 362 *self 363 } 364 } 365 #[repr(C)] 366 #[cfg(feature = "Win32_Foundation")] 367 pub union MEM_EXTENDED_PARAMETER_1 { 368 pub ULong64: u64, 369 pub Pointer: *mut ::core::ffi::c_void, 370 pub Size: usize, 371 pub Handle: super::super::Foundation::HANDLE, 372 pub ULong: u32, 373 } 374 #[cfg(feature = "Win32_Foundation")] 375 impl ::core::marker::Copy for MEM_EXTENDED_PARAMETER_1 {} 376 #[cfg(feature = "Win32_Foundation")] 377 impl ::core::clone::Clone for MEM_EXTENDED_PARAMETER_1 { clone(&self) -> Self378 fn clone(&self) -> Self { 379 *self 380 } 381 } 382 pub type MEM_EXTENDED_PARAMETER_TYPE = i32; 383 pub const MemExtendedParameterInvalidType: MEM_EXTENDED_PARAMETER_TYPE = 0i32; 384 pub const MemExtendedParameterAddressRequirements: MEM_EXTENDED_PARAMETER_TYPE = 1i32; 385 pub const MemExtendedParameterNumaNode: MEM_EXTENDED_PARAMETER_TYPE = 2i32; 386 pub const MemExtendedParameterPartitionHandle: MEM_EXTENDED_PARAMETER_TYPE = 3i32; 387 pub const MemExtendedParameterUserPhysicalHandle: MEM_EXTENDED_PARAMETER_TYPE = 4i32; 388 pub const MemExtendedParameterAttributeFlags: MEM_EXTENDED_PARAMETER_TYPE = 5i32; 389 pub const MemExtendedParameterImageMachine: MEM_EXTENDED_PARAMETER_TYPE = 6i32; 390 pub const MemExtendedParameterMax: MEM_EXTENDED_PARAMETER_TYPE = 7i32; 391 pub type OFFER_PRIORITY = i32; 392 pub const VmOfferPriorityVeryLow: OFFER_PRIORITY = 1i32; 393 pub const VmOfferPriorityLow: OFFER_PRIORITY = 2i32; 394 pub const VmOfferPriorityBelowNormal: OFFER_PRIORITY = 3i32; 395 pub const VmOfferPriorityNormal: OFFER_PRIORITY = 4i32; 396 pub type PAGE_PROTECTION_FLAGS = u32; 397 pub const PAGE_NOACCESS: PAGE_PROTECTION_FLAGS = 1u32; 398 pub const PAGE_READONLY: PAGE_PROTECTION_FLAGS = 2u32; 399 pub const PAGE_READWRITE: PAGE_PROTECTION_FLAGS = 4u32; 400 pub const PAGE_WRITECOPY: PAGE_PROTECTION_FLAGS = 8u32; 401 pub const PAGE_EXECUTE: PAGE_PROTECTION_FLAGS = 16u32; 402 pub const PAGE_EXECUTE_READ: PAGE_PROTECTION_FLAGS = 32u32; 403 pub const PAGE_EXECUTE_READWRITE: PAGE_PROTECTION_FLAGS = 64u32; 404 pub const PAGE_EXECUTE_WRITECOPY: PAGE_PROTECTION_FLAGS = 128u32; 405 pub const PAGE_GUARD: PAGE_PROTECTION_FLAGS = 256u32; 406 pub const PAGE_NOCACHE: PAGE_PROTECTION_FLAGS = 512u32; 407 pub const PAGE_WRITECOMBINE: PAGE_PROTECTION_FLAGS = 1024u32; 408 pub const PAGE_GRAPHICS_NOACCESS: PAGE_PROTECTION_FLAGS = 2048u32; 409 pub const PAGE_GRAPHICS_READONLY: PAGE_PROTECTION_FLAGS = 4096u32; 410 pub const PAGE_GRAPHICS_READWRITE: PAGE_PROTECTION_FLAGS = 8192u32; 411 pub const PAGE_GRAPHICS_EXECUTE: PAGE_PROTECTION_FLAGS = 16384u32; 412 pub const PAGE_GRAPHICS_EXECUTE_READ: PAGE_PROTECTION_FLAGS = 32768u32; 413 pub const PAGE_GRAPHICS_EXECUTE_READWRITE: PAGE_PROTECTION_FLAGS = 65536u32; 414 pub const PAGE_GRAPHICS_COHERENT: PAGE_PROTECTION_FLAGS = 131072u32; 415 pub const PAGE_GRAPHICS_NOCACHE: PAGE_PROTECTION_FLAGS = 262144u32; 416 pub const PAGE_ENCLAVE_THREAD_CONTROL: PAGE_PROTECTION_FLAGS = 2147483648u32; 417 pub const PAGE_REVERT_TO_FILE_MAP: PAGE_PROTECTION_FLAGS = 2147483648u32; 418 pub const PAGE_TARGETS_NO_UPDATE: PAGE_PROTECTION_FLAGS = 1073741824u32; 419 pub const PAGE_TARGETS_INVALID: PAGE_PROTECTION_FLAGS = 1073741824u32; 420 pub const PAGE_ENCLAVE_UNVALIDATED: PAGE_PROTECTION_FLAGS = 536870912u32; 421 pub const PAGE_ENCLAVE_MASK: PAGE_PROTECTION_FLAGS = 268435456u32; 422 pub const PAGE_ENCLAVE_DECOMMIT: PAGE_PROTECTION_FLAGS = 268435456u32; 423 pub const PAGE_ENCLAVE_SS_FIRST: PAGE_PROTECTION_FLAGS = 268435457u32; 424 pub const PAGE_ENCLAVE_SS_REST: PAGE_PROTECTION_FLAGS = 268435458u32; 425 pub const SEC_PARTITION_OWNER_HANDLE: PAGE_PROTECTION_FLAGS = 262144u32; 426 pub const SEC_64K_PAGES: PAGE_PROTECTION_FLAGS = 524288u32; 427 pub const SEC_FILE: PAGE_PROTECTION_FLAGS = 8388608u32; 428 pub const SEC_IMAGE: PAGE_PROTECTION_FLAGS = 16777216u32; 429 pub const SEC_PROTECTED_IMAGE: PAGE_PROTECTION_FLAGS = 33554432u32; 430 pub const SEC_RESERVE: PAGE_PROTECTION_FLAGS = 67108864u32; 431 pub const SEC_COMMIT: PAGE_PROTECTION_FLAGS = 134217728u32; 432 pub const SEC_NOCACHE: PAGE_PROTECTION_FLAGS = 268435456u32; 433 pub const SEC_WRITECOMBINE: PAGE_PROTECTION_FLAGS = 1073741824u32; 434 pub const SEC_LARGE_PAGES: PAGE_PROTECTION_FLAGS = 2147483648u32; 435 pub const SEC_IMAGE_NO_EXECUTE: PAGE_PROTECTION_FLAGS = 285212672u32; 436 pub type PAGE_TYPE = u32; 437 pub const MEM_PRIVATE: PAGE_TYPE = 131072u32; 438 pub const MEM_MAPPED: PAGE_TYPE = 262144u32; 439 pub const MEM_IMAGE: PAGE_TYPE = 16777216u32; 440 pub type PBAD_MEMORY_CALLBACK_ROUTINE = unsafe extern "system" fn(); 441 #[repr(C)] 442 #[cfg(feature = "Win32_Foundation")] 443 pub struct PROCESS_HEAP_ENTRY { 444 pub lpData: *mut ::core::ffi::c_void, 445 pub cbData: u32, 446 pub cbOverhead: u8, 447 pub iRegionIndex: u8, 448 pub wFlags: u16, 449 pub Anonymous: PROCESS_HEAP_ENTRY_0, 450 } 451 #[cfg(feature = "Win32_Foundation")] 452 impl ::core::marker::Copy for PROCESS_HEAP_ENTRY {} 453 #[cfg(feature = "Win32_Foundation")] 454 impl ::core::clone::Clone for PROCESS_HEAP_ENTRY { clone(&self) -> Self455 fn clone(&self) -> Self { 456 *self 457 } 458 } 459 #[repr(C)] 460 #[cfg(feature = "Win32_Foundation")] 461 pub union PROCESS_HEAP_ENTRY_0 { 462 pub Block: PROCESS_HEAP_ENTRY_0_0, 463 pub Region: PROCESS_HEAP_ENTRY_0_1, 464 } 465 #[cfg(feature = "Win32_Foundation")] 466 impl ::core::marker::Copy for PROCESS_HEAP_ENTRY_0 {} 467 #[cfg(feature = "Win32_Foundation")] 468 impl ::core::clone::Clone for PROCESS_HEAP_ENTRY_0 { clone(&self) -> Self469 fn clone(&self) -> Self { 470 *self 471 } 472 } 473 #[repr(C)] 474 #[cfg(feature = "Win32_Foundation")] 475 pub struct PROCESS_HEAP_ENTRY_0_0 { 476 pub hMem: super::super::Foundation::HANDLE, 477 pub dwReserved: [u32; 3], 478 } 479 #[cfg(feature = "Win32_Foundation")] 480 impl ::core::marker::Copy for PROCESS_HEAP_ENTRY_0_0 {} 481 #[cfg(feature = "Win32_Foundation")] 482 impl ::core::clone::Clone for PROCESS_HEAP_ENTRY_0_0 { clone(&self) -> Self483 fn clone(&self) -> Self { 484 *self 485 } 486 } 487 #[repr(C)] 488 #[cfg(feature = "Win32_Foundation")] 489 pub struct PROCESS_HEAP_ENTRY_0_1 { 490 pub dwCommittedSize: u32, 491 pub dwUnCommittedSize: u32, 492 pub lpFirstBlock: *mut ::core::ffi::c_void, 493 pub lpLastBlock: *mut ::core::ffi::c_void, 494 } 495 #[cfg(feature = "Win32_Foundation")] 496 impl ::core::marker::Copy for PROCESS_HEAP_ENTRY_0_1 {} 497 #[cfg(feature = "Win32_Foundation")] 498 impl ::core::clone::Clone for PROCESS_HEAP_ENTRY_0_1 { clone(&self) -> Self499 fn clone(&self) -> Self { 500 *self 501 } 502 } 503 #[cfg(feature = "Win32_Foundation")] 504 pub type PSECURE_MEMORY_CACHE_CALLBACK = unsafe extern "system" fn(addr: *const ::core::ffi::c_void, range: usize) -> super::super::Foundation::BOOLEAN; 505 pub type UNMAP_VIEW_OF_FILE_FLAGS = u32; 506 pub const MEM_UNMAP_NONE: UNMAP_VIEW_OF_FILE_FLAGS = 0u32; 507 pub const MEM_UNMAP_WITH_TRANSIENT_BOOST: UNMAP_VIEW_OF_FILE_FLAGS = 1u32; 508 pub const MEM_PRESERVE_PLACEHOLDER: UNMAP_VIEW_OF_FILE_FLAGS = 2u32; 509 pub type VIRTUAL_ALLOCATION_TYPE = u32; 510 pub const MEM_COMMIT: VIRTUAL_ALLOCATION_TYPE = 4096u32; 511 pub const MEM_RESERVE: VIRTUAL_ALLOCATION_TYPE = 8192u32; 512 pub const MEM_RESET: VIRTUAL_ALLOCATION_TYPE = 524288u32; 513 pub const MEM_RESET_UNDO: VIRTUAL_ALLOCATION_TYPE = 16777216u32; 514 pub const MEM_REPLACE_PLACEHOLDER: VIRTUAL_ALLOCATION_TYPE = 16384u32; 515 pub const MEM_LARGE_PAGES: VIRTUAL_ALLOCATION_TYPE = 536870912u32; 516 pub const MEM_RESERVE_PLACEHOLDER: VIRTUAL_ALLOCATION_TYPE = 262144u32; 517 pub const MEM_FREE: VIRTUAL_ALLOCATION_TYPE = 65536u32; 518 pub type VIRTUAL_FREE_TYPE = u32; 519 pub const MEM_DECOMMIT: VIRTUAL_FREE_TYPE = 16384u32; 520 pub const MEM_RELEASE: VIRTUAL_FREE_TYPE = 32768u32; 521 pub type WIN32_MEMORY_INFORMATION_CLASS = i32; 522 pub const MemoryRegionInfo: WIN32_MEMORY_INFORMATION_CLASS = 0i32; 523 #[repr(C)] 524 pub struct WIN32_MEMORY_PARTITION_INFORMATION { 525 pub Flags: u32, 526 pub NumaNode: u32, 527 pub Channel: u32, 528 pub NumberOfNumaNodes: u32, 529 pub ResidentAvailablePages: u64, 530 pub CommittedPages: u64, 531 pub CommitLimit: u64, 532 pub PeakCommitment: u64, 533 pub TotalNumberOfPages: u64, 534 pub AvailablePages: u64, 535 pub ZeroPages: u64, 536 pub FreePages: u64, 537 pub StandbyPages: u64, 538 pub Reserved: [u64; 16], 539 pub MaximumCommitLimit: u64, 540 pub Reserved2: u64, 541 pub PartitionId: u32, 542 } 543 impl ::core::marker::Copy for WIN32_MEMORY_PARTITION_INFORMATION {} 544 impl ::core::clone::Clone for WIN32_MEMORY_PARTITION_INFORMATION { clone(&self) -> Self545 fn clone(&self) -> Self { 546 *self 547 } 548 } 549 pub type WIN32_MEMORY_PARTITION_INFORMATION_CLASS = i32; 550 pub const MemoryPartitionInfo: WIN32_MEMORY_PARTITION_INFORMATION_CLASS = 0i32; 551 pub const MemoryPartitionDedicatedMemoryInfo: WIN32_MEMORY_PARTITION_INFORMATION_CLASS = 1i32; 552 #[repr(C)] 553 pub struct WIN32_MEMORY_RANGE_ENTRY { 554 pub VirtualAddress: *mut ::core::ffi::c_void, 555 pub NumberOfBytes: usize, 556 } 557 impl ::core::marker::Copy for WIN32_MEMORY_RANGE_ENTRY {} 558 impl ::core::clone::Clone for WIN32_MEMORY_RANGE_ENTRY { clone(&self) -> Self559 fn clone(&self) -> Self { 560 *self 561 } 562 } 563 #[repr(C)] 564 pub struct WIN32_MEMORY_REGION_INFORMATION { 565 pub AllocationBase: *mut ::core::ffi::c_void, 566 pub AllocationProtect: u32, 567 pub Anonymous: WIN32_MEMORY_REGION_INFORMATION_0, 568 pub RegionSize: usize, 569 pub CommitSize: usize, 570 } 571 impl ::core::marker::Copy for WIN32_MEMORY_REGION_INFORMATION {} 572 impl ::core::clone::Clone for WIN32_MEMORY_REGION_INFORMATION { clone(&self) -> Self573 fn clone(&self) -> Self { 574 *self 575 } 576 } 577 #[repr(C)] 578 pub union WIN32_MEMORY_REGION_INFORMATION_0 { 579 pub Flags: u32, 580 pub Anonymous: WIN32_MEMORY_REGION_INFORMATION_0_0, 581 } 582 impl ::core::marker::Copy for WIN32_MEMORY_REGION_INFORMATION_0 {} 583 impl ::core::clone::Clone for WIN32_MEMORY_REGION_INFORMATION_0 { clone(&self) -> Self584 fn clone(&self) -> Self { 585 *self 586 } 587 } 588 #[repr(C)] 589 pub struct WIN32_MEMORY_REGION_INFORMATION_0_0 { 590 pub _bitfield: u32, 591 } 592 impl ::core::marker::Copy for WIN32_MEMORY_REGION_INFORMATION_0_0 {} 593 impl ::core::clone::Clone for WIN32_MEMORY_REGION_INFORMATION_0_0 { clone(&self) -> Self594 fn clone(&self) -> Self { 595 *self 596 } 597 } 598