Fixing bugs, prepending all names with context name

This commit is contained in:
Krzosa Karol
2022-06-13 18:07:17 +02:00
parent f9487a2c24
commit 955167ce18
8 changed files with 68 additions and 37 deletions

View File

@@ -1,12 +1,22 @@
#load "globals.kl"
#load "lambdas.kl"
DWORD :: U32
LPCSTR :: *char
HWND :: *void
HMENU :: *void
HINSTANCE :: *void
LPVOID :: *void
SIZE_T :: U64
CreateWindowA :: #foreign (dwExStyle: DWORD, lpClassName: *char, lpWindowName: *char, dwStyle: DWORD, X: int, Y: int, nWidth: int, nHeight: int, hWndParent: HWND, hMenu: HMENU, hInstance: HINSTANCE, lpParam: *void): HWND
// @todo: enum #flag
MEM_COMMIT :: 1//0x00001000
MEM_RESERVE :: 2//0x00002000
MEM_RESET :: 3//0x00080000
MEM_RESET_UNDO :: 4//0x1000000
PAGE_EXECUTE :: 1//0x10
PAGE_EXECUTE_READ :: 2//0x20
PAGE_EXECUTE_READWRITE :: 3//0x40
PAGE_EXECUTE_WRITECOPY :: 4//0x80
VirtualAlloc :: #foreign (lpAddress: LPVOID, dwSize: SIZE_T, flAllocationType: DWORD, flProtect: DWORD): LPVOID