Add procs for VirtualAllocEx and VirtualFreeEx in windows.nim
This commit is contained in:
parent
ab58e844da
commit
ef887d5d90
1 changed files with 6 additions and 0 deletions
|
|
@ -18567,8 +18567,14 @@ proc FlushInstructionCache*(hProcess: HANDLE, lpBaseAddress: LPCVOID,
|
|||
proc VirtualAlloc*(lpAddress: LPVOID, dwSize: SIZE_T, flAllocationType: DWORD,
|
||||
flProtect: DWORD): LPVOID{.stdcall, dynlib: "kernel32",
|
||||
importc: "VirtualAlloc".}
|
||||
proc VirtualAllocEx*(hProcess: HANDLE, lpAddress: LPVOID, dwSize: SIZE_T,
|
||||
flAllocationType: DWORD, flProtect: DWORD): LPVOID
|
||||
{.stdcall, dynlib: "kernel32", importc: "VirtualAllocEx".}
|
||||
proc VirtualFree*(lpAddress: LPVOID, dwSize: SIZE_T, dwFreeType: DWORD): WINBOOL{.
|
||||
stdcall, dynlib: "kernel32", importc: "VirtualFree".}
|
||||
proc VirtualFreeEx*(hProcess: HANDLE, lpAddress: LPVOID, dwSize: SIZE_T,
|
||||
dwFreeType: DWORD): WINBOOL
|
||||
{.stdcall, dynlib: "kernel32", importc: "VirtualFree".}
|
||||
proc VirtualProtect*(lpAddress: LPVOID, dwSize: DWORD, flNewProtect: DWORD,
|
||||
lpflOldProtect: PDWORD): WINBOOL{.stdcall,
|
||||
dynlib: "kernel32", importc: "VirtualProtect".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue