abla/runtime/platform/windows

Generated from source.

Import with import "abla/runtime/platform/windows".

Source: abla/runtime/platform/windows/entry.ab

ExitProcess (extern)

trusted noescape extern:"c" fun ExitProcess(code: int): void

kernel32 ExitProcess: ends the process with the given status; does not return.

GetStdHandle (extern)

trusted noescape extern:"c" fun GetStdHandle(which: int): int

kernel32 GetStdHandle: the handle of standard input (-10), output (-11) or error (-12), or 0 or -1 when there is none.

SetStdHandle (extern)

trusted noescape extern:"c" fun SetStdHandle(which: int, handle: int): i32

kernel32 SetStdHandle: makes a handle the process's standard input (-10), output (-11) or error (-12); returns non-zero on success.

WriteFile (extern)

trusted noescape extern:"c" fun WriteFile(handle: int, buffer: int, count: int, written: int, overlapped: int): i32

kernel32 WriteFile: writes count bytes at buffer to handle, storing the count written at written; returns non-zero on success, 0 on failure.

VirtualAlloc (extern)

trusted noescape extern:"c" fun VirtualAlloc(address: int, size: int, kind: int, protect: int): int

kernel32 VirtualAlloc: reserves or commits size bytes (allocation type kind, page protection protect) at address or anywhere; returns the base address, or 0 when it fails.

VirtualFree (extern)

trusted noescape extern:"c" fun VirtualFree(address: int, size: int, kind: int): i32

kernel32 VirtualFree: decommits or releases pages (kind); returns non-zero on success, 0 on failure.

VirtualProtect (extern)

trusted noescape extern:"c" fun VirtualProtect(address: int, size: int, protect: int, old: int): i32

kernel32 VirtualProtect: changes the protection of size bytes at address, storing the old one at old; returns non-zero on success, 0 on failure.

DiscardVirtualMemory (extern)

trusted noescape extern:"c" fun DiscardVirtualMemory(address: int, size: int): i32

kernel32 DiscardVirtualMemory: gives the contents of whole pages back to the system; returns 0 on success, an error code otherwise.

GetCommandLineW (extern)

trusted noescape extern:"c" fun GetCommandLineW(): int

kernel32 GetCommandLineW: the address of the process's UTF-16 command line; never fails.

WideCharToMultiByte (extern)

trusted noescape extern:"c" fun WideCharToMultiByte(page: int, flags: int, wide: int, wideCount: int, narrow: int, narrowCount: int, defaultCharacter: int, usedDefault: int): i32

kernel32 WideCharToMultiByte: converts UTF-16 text to a code page (65001 is UTF-8); returns the bytes written or needed, 0 when it fails.

QueryPerformanceCounter (extern)

trusted noescape extern:"c" fun QueryPerformanceCounter(value: int): i32

kernel32 QueryPerformanceCounter: stores the performance counter at value; returns non-zero on success.

QueryPerformanceFrequency (extern)

trusted noescape extern:"c" fun QueryPerformanceFrequency(value: int): i32

kernel32 QueryPerformanceFrequency: stores the performance counter's ticks per second at value; returns non-zero on success.

GetSystemTimePreciseAsFileTime (extern)

trusted noescape extern:"c" fun GetSystemTimePreciseAsFileTime(value: int): void

kernel32 GetSystemTimePreciseAsFileTime: stores the system time in 100 ns intervals since 1601 at value; never fails.

Sleep (extern)

trusted noescape extern:"c" fun Sleep(milliseconds: int): void

kernel32 Sleep: suspends the calling thread for at least milliseconds.

GetCurrentProcessId (extern)

trusted noescape extern:"c" fun GetCurrentProcessId(): i32

kernel32 GetCurrentProcessId: the calling process's id; never fails.

GetEnvironmentStringsW (extern)

trusted noescape extern:"c" fun GetEnvironmentStringsW(): int

kernel32 GetEnvironmentStringsW: the address of the process's environment block (UTF-16 NAME=value strings, each NUL-ended, an empty one at the end), to be released with FreeEnvironmentStringsW; 0 when it cannot be read.

FreeEnvironmentStringsW (extern)

trusted noescape extern:"c" fun FreeEnvironmentStringsW(block: int): i32

kernel32 FreeEnvironmentStringsW: releases a block GetEnvironmentStringsW returned; returns non-zero on success.

GetCurrentThreadId (extern)

trusted noescape extern:"c" fun GetCurrentThreadId(): i32

kernel32 GetCurrentThreadId: the calling thread's id; never fails.

WaitOnAddress (extern)

trusted noescape extern:"c" fun WaitOnAddress(address: int, compare: int, size: int, milliseconds: int): i32

synchronization WaitOnAddress: sleeps while the size-byte word at address still equals the one at compare (a futex wait), until woken or for milliseconds; returns non-zero when it returns for another reason than a timeout.

WakeByAddressSingle (extern)

trusted noescape extern:"c" fun WakeByAddressSingle(address: int): void

synchronization WakeByAddressSingle: wakes one thread waiting on the word at address.

WakeByAddressAll (extern)

trusted noescape extern:"c" fun WakeByAddressAll(address: int): void

synchronization WakeByAddressAll: wakes every thread waiting on the word at address.

CreateFileW (extern)

trusted noescape extern:"c" fun CreateFileW(path: int, access: int, share: int, security: int, disposition: int, flags: int, template: int): int

kernel32 CreateFileW: opens or creates the file or directory at the UTF-16 path with the given access, sharing, disposition and flags; returns a handle, or -1 when it fails.

ReadFile (extern)

trusted noescape extern:"c" fun ReadFile(handle: int, buffer: int, count: int, read: int, overlapped: int): i32

kernel32 ReadFile: reads up to count bytes from handle into buffer, storing the count read at read; returns non-zero on success, 0 on failure.

CloseHandle (extern)

trusted noescape extern:"c" fun CloseHandle(handle: int): i32

kernel32 CloseHandle: closes a handle; returns non-zero on success, 0 on failure.

SetFilePointerEx (extern)

trusted noescape extern:"c" fun SetFilePointerEx(handle: int, distance: int, position: int, method: int): i32

kernel32 SetFilePointerEx: moves the file pointer by distance from the start (0), current position (1) or end (2), storing the new position at position; returns non-zero on success.

GetFileInformationByHandle (extern)

trusted noescape extern:"c" fun GetFileInformationByHandle(handle: int, info: int): i32

kernel32 GetFileInformationByHandle: fills the 52-byte BY_HANDLE_FILE_INFORMATION at info for an open file or directory; returns non-zero on success.

SetFileInformationByHandle (extern)

trusted noescape extern:"c" fun SetFileInformationByHandle(handle: int, informationClass: int, information: int, size: int): i32

kernel32 SetFileInformationByHandle: sets one class of information of an open file (class 0: the 40-byte FILE_BASIC_INFO, whose zero times and attributes mean "unchanged"); returns non-zero on success.

CreateDirectoryW (extern)

trusted noescape extern:"c" fun CreateDirectoryW(path: int, security: int): i32

kernel32 CreateDirectoryW: creates the directory at the UTF-16 path; returns non-zero on success, 0 on failure.

RemoveDirectoryW (extern)

trusted noescape extern:"c" fun RemoveDirectoryW(path: int): i32

kernel32 RemoveDirectoryW: removes the empty directory at the UTF-16 path; returns non-zero on success, 0 on failure.

DeleteFileW (extern)

trusted noescape extern:"c" fun DeleteFileW(path: int): i32

kernel32 DeleteFileW: deletes the file at the UTF-16 path; returns non-zero on success, 0 on failure.

MoveFileExW (extern)

trusted noescape extern:"c" fun MoveFileExW(from: int, to: int, flags: int): i32

kernel32 MoveFileExW: renames a file or directory, replacing the destination when flags has 1; returns non-zero on success, 0 on failure.

GetCurrentDirectoryW (extern)

trusted noescape extern:"c" fun GetCurrentDirectoryW(size: int, buffer: int): i32

kernel32 GetCurrentDirectoryW: stores the current directory as UTF-16 at buffer (size in characters); returns its length, or 0 on failure.

SetCurrentDirectoryW (extern)

trusted noescape extern:"c" fun SetCurrentDirectoryW(path: int): i32

kernel32 SetCurrentDirectoryW: makes the UTF-16 path the current directory; returns non-zero on success, 0 on failure.

LockFileEx (extern)

trusted noescape extern:"c" fun LockFileEx(handle: int, flags: int, reserved: int, lengthLow: int, lengthHigh: int, overlapped: int): i32

kernel32 LockFileEx: locks the byte range (low, high lengths) of a file from the overlapped record's offset, shared or (flags 2) exclusive, failing at once with flags 1; waits otherwise; returns non-zero on success.

UnlockFileEx (extern)

trusted noescape extern:"c" fun UnlockFileEx(handle: int, reserved: int, lengthLow: int, lengthHigh: int, overlapped: int): i32

kernel32 UnlockFileEx: releases a byte range LockFileEx locked; returns non-zero on success.

CreateHardLinkW (extern)

trusted noescape extern:"c" fun CreateHardLinkW(newPath: int, existingPath: int, security: int): i32

kernel32 CreateHardLinkW: makes a hard link at the first UTF-16 path to the file at the second; returns non-zero on success.

SetFileTime (extern)

trusted noescape extern:"c" fun SetFileTime(handle: int, creation: int, access: int, write: int): i32

kernel32 SetFileTime: sets a file's creation, last access and last write FILETIMEs (a null pointer leaves one as it is); returns non-zero on success.

SetFileAttributesW (extern)

trusted noescape extern:"c" fun SetFileAttributesW(path: int, attributes: int): i32

kernel32 SetFileAttributesW: sets the attributes of the file at the UTF-16 path; returns non-zero on success.

FlushFileBuffers (extern)

trusted noescape extern:"c" fun FlushFileBuffers(handle: int): i32

kernel32 FlushFileBuffers: writes a file's buffered data to disk; returns non-zero on success, 0 on failure.

SetEndOfFile (extern)

trusted noescape extern:"c" fun SetEndOfFile(handle: int): i32

kernel32 SetEndOfFile: ends the file at the current file pointer; returns non-zero on success, 0 on failure.

GetLastError (extern)

trusted noescape extern:"c" fun GetLastError(): i32

kernel32 GetLastError: the calling thread's last error code.

MultiByteToWideChar (extern)

trusted noescape extern:"c" fun MultiByteToWideChar(page: int, flags: int, text: int, count: int, wide: int, wideCount: int): i32

kernel32 MultiByteToWideChar: converts text of a code page (65001 is UTF-8) to UTF-16; returns the characters written or needed, 0 when it fails.

GetFinalPathNameByHandleW (extern)

trusted noescape extern:"c" fun GetFinalPathNameByHandleW(handle: int, buffer: int, size: int, flags: int): i32

kernel32 GetFinalPathNameByHandleW: stores the final path of an open file or directory (the \\?\ form for flags 0) as UTF-16 at buffer, which holds size characters with the NUL; returns the length without the NUL, a larger number when the buffer is too small, or 0 on failure.

CompareStringOrdinal (extern)

trusted noescape extern:"c" fun CompareStringOrdinal(first: int, firstLength: int, second: int, secondLength: int, ignoreCase: int): i32

kernel32 CompareStringOrdinal: compares two UTF-16 strings of the given lengths in characters by code unit, ignoring case when ignoreCase is non-zero; returns 2 when they are equal, 1 or 3 when not, and 0 on failure.

FindFirstFileW (extern)

trusted noescape extern:"c" fun FindFirstFileW(pattern: int, data: int): int

kernel32 FindFirstFileW: starts listing the directory entries that match the UTF-16 pattern, storing the first at data (a 592-byte WIN32_FIND_DATAW); returns a search handle, or -1 when it fails.

FindNextFileW (extern)

trusted noescape extern:"c" fun FindNextFileW(search: int, data: int): i32

kernel32 FindNextFileW: stores the next directory entry of a search at data; returns non-zero on success, 0 at the end.

FindClose (extern)

trusted noescape extern:"c" fun FindClose(search: int): i32

kernel32 FindClose: ends a directory search; returns non-zero on success.

GetFileAttributesW (extern)

trusted noescape extern:"c" fun GetFileAttributesW(path: int): i32

kernel32 GetFileAttributesW: the attributes of the file at the UTF-16 path, or 0xFFFFFFFF when it does not exist.

CreateSymbolicLinkW (extern)

trusted noescape extern:"c" fun CreateSymbolicLinkW(link: int, target: int, flags: int): i32

kernel32 CreateSymbolicLinkW: makes a symbolic link at the UTF-16 path link to target (flags: 1 a directory, 2 without the privilege); returns a BOOLEAN, non-zero on success.

DeviceIoControl (extern)

trusted noescape extern:"c" fun DeviceIoControl(handle: int, code: int, input: int, inputSize: int, output: int, outputSize: int, returned: int, overlapped: int): i32

kernel32 DeviceIoControl: sends control code to the device or file of handle, with input and output buffers; returns non-zero on success.

ProcessPrng (extern)

trusted noescape extern:"c" fun ProcessPrng(buffer: int, size: int): i32

bcryptprimitives ProcessPrng: fills size bytes at buffer with cryptographically secure random bytes; returns non-zero (it cannot fail on Windows 10 and later).

LoadLibraryExW (extern)

trusted noescape extern:"c" fun LoadLibraryExW(name: int, file: int, flags: int): int

kernel32 LoadLibraryExW: loads the DLL named by the UTF-16 string (file 0); with flags 0x800 (LOAD_LIBRARY_SEARCH_SYSTEM32) only from System32; returns the module handle, or 0.

GetProcAddress (extern)

trusted noescape extern:"c" fun GetProcAddress(module: int, name: int): int

kernel32 GetProcAddress: the address of the function the NUL-ended ASCII name gives in a module, or 0.

WSAStartup (extern)

trusted noescape extern:"c" fun WSAStartup(version: int, data: int): i32

ws2_32 WSAStartup: initialises Winsock for version (0x0202 is 2.2), filling the 408-byte WSADATA at data; returns 0 on success.

WSAGetLastError (extern)

trusted noescape extern:"c" fun WSAGetLastError(): i32

ws2_32 WSAGetLastError: the calling thread's last Winsock error code.

socket (extern)

trusted noescape extern:"c" fun socket(family: int, kind: int, protocol: int): int

ws2_32 socket: creates a socket of the address family, type and protocol; returns it, or -1 (INVALID_SOCKET) when it fails.

closesocket (extern)

trusted noescape extern:"c" fun closesocket(socket: int): i32

ws2_32 closesocket: closes a socket; returns 0 on success, -1 on failure.

connect (extern)

trusted noescape extern:"c" fun connect(socket: int, address: int, length: int): i32

ws2_32 connect: connects a socket to the address (a sockaddr of length bytes); returns 0 on success, -1 on failure.

bind (extern)

trusted noescape extern:"c" fun bind(socket: int, address: int, length: int): i32

ws2_32 bind: binds a socket to the address (a sockaddr of length bytes); returns 0 on success, -1 on failure.

listen (extern)

trusted noescape extern:"c" fun listen(socket: int, backlog: int): i32

ws2_32 listen: puts a socket in the listening state with the backlog; returns 0 on success, -1 on failure.

accept (extern)

trusted noescape extern:"c" fun accept(socket: int, address: int, length: int): int

ws2_32 accept: takes a pending connection of a listening socket, storing the peer's address and its length; returns the new socket, or -1 when it fails.

send (extern)

trusted noescape extern:"c" fun send(socket: int, buffer: int, count: int, flags: int): i32

ws2_32 send: sends count bytes at buffer; returns the bytes sent, or -1 on failure.

recv (extern)

trusted noescape extern:"c" fun recv(socket: int, buffer: int, count: int, flags: int): i32

ws2_32 recv: receives up to count bytes into buffer; returns the bytes received, 0 when the peer closed, or -1 on failure.

sendto (extern)

trusted noescape extern:"c" fun sendto(socket: int, buffer: int, count: int, flags: int, address: int, length: int): i32

ws2_32 sendto: sends count bytes at buffer to the address; returns the bytes sent, or -1 on failure.

recvfrom (extern)

trusted noescape extern:"c" fun recvfrom(socket: int, buffer: int, count: int, flags: int, address: int, length: int): i32

ws2_32 recvfrom: receives up to count bytes into buffer, storing the sender's address and its length; returns the bytes received, or -1 on failure.

shutdown (extern)

trusted noescape extern:"c" fun shutdown(socket: int, how: int): i32

ws2_32 shutdown: disables sending (1), receiving (0) or both (2) on a socket; returns 0 on success, -1 on failure.

setsockopt (extern)

trusted noescape extern:"c" fun setsockopt(socket: int, level: int, option: int, value: int, length: int): i32

ws2_32 setsockopt: sets a socket option (level and option as Windows numbers them) from length bytes at value; returns 0 on success, -1 on failure.

getsockopt (extern)

trusted noescape extern:"c" fun getsockopt(socket: int, level: int, option: int, value: int, length: int): i32

ws2_32 getsockopt: reads a socket option into value, its length at length; returns 0 on success, -1 on failure.

getsockname (extern)

trusted noescape extern:"c" fun getsockname(socket: int, address: int, length: int): i32

ws2_32 getsockname: stores the local address of a socket and its length; returns 0 on success, -1 on failure.

getpeername (extern)

trusted noescape extern:"c" fun getpeername(socket: int, address: int, length: int): i32

ws2_32 getpeername: stores the peer address of a connected socket and its length; returns 0 on success, -1 on failure.

ioctlsocket (extern)

trusted noescape extern:"c" fun ioctlsocket(socket: int, command: int, argument: int): i32

ws2_32 ioctlsocket: runs a control command on a socket (FIONBIO sets non-blocking mode from the word at argument, FIONREAD stores the bytes pending); returns 0 on success, -1 on failure.

WSAPoll (extern)

trusted noescape extern:"c" fun WSAPoll(entries: int, count: int, milliseconds: int): i32

ws2_32 WSAPoll: waits up to milliseconds (-1: for ever) for events on count WSAPOLLFD entries (16 bytes: socket, events, revents); returns the number of ready entries, 0 on timeout, -1 on failure.

CreateProcessW (extern)

trusted noescape extern:"c" fun CreateProcessW(application: int, commandLine: int, processSecurity: int, threadSecurity: int, inherit: int, flags: int, environment: int, directory: int, startup: int, information: int): i32

kernel32 CreateProcessW: starts a process from the UTF-16 command line with an environment block, working directory, STARTUPINFOW and PROCESS_INFORMATION, inheriting handles when inherit is non-zero; returns non-zero on success, 0 on failure.

GetExitCodeProcess (extern)

trusted noescape extern:"c" fun GetExitCodeProcess(process: int, code: int): i32

kernel32 GetExitCodeProcess: stores a process's exit code (259, STILL_ACTIVE, while it runs) at code; returns non-zero on success.

TerminateProcess (extern)

trusted noescape extern:"c" fun TerminateProcess(process: int, code: int): i32

kernel32 TerminateProcess: ends a process at once with the exit code; returns non-zero on success.

SetHandleInformation (extern)

trusted noescape extern:"c" fun SetHandleInformation(handle: int, mask: int, flags: int): i32

kernel32 SetHandleInformation: sets the flags in mask of a handle (HANDLE_FLAG_INHERIT is 1) to flags; returns non-zero on success.

DuplicateHandle (extern)

trusted noescape extern:"c" fun DuplicateHandle(sourceProcess: int, source: int, targetProcess: int, target: int, access: int, inherit: int, options: int): i32

kernel32 DuplicateHandle: duplicates a handle of a source process into a target process (options 2: same access), storing the new handle at target; returns non-zero on success.

GetCurrentProcess (extern)

trusted noescape extern:"c" fun GetCurrentProcess(): int

kernel32 GetCurrentProcess: the pseudo handle of the calling process; never fails.

GetProcessAffinityMask (extern)

trusted noescape extern:"c" fun GetProcessAffinityMask(process: int, processMask: int, systemMask: int): i32

kernel32 GetProcessAffinityMask: stores the process's and the system's processor masks (one bit a CPU of the process's group); returns non-zero on success.

GetCurrentThreadStackLimits (extern)

trusted noescape extern:"c" fun GetCurrentThreadStackLimits(low: int, high: int): void

kernel32 GetCurrentThreadStackLimits: stores the lowest and highest addresses of the calling thread's reserved stack; never fails.

GetModuleFileNameW (extern)

trusted noescape extern:"c" fun GetModuleFileNameW(module: int, path: int, size: int): i32

kernel32 GetModuleFileNameW: stores the path of a module's file (module 0: the process's executable) as UTF-16, terminated; returns the characters written without the terminator, size when the path was cut, 0 on failure.

InitializeProcThreadAttributeList (extern)

trusted noescape extern:"c" fun InitializeProcThreadAttributeList(list: int, count: int, flags: int, size: int): i32

kernel32 InitializeProcThreadAttributeList: prepares an attribute list for count attributes in the buffer at list (null: only the size in bytes it needs is stored at size); returns non-zero on success.

UpdateProcThreadAttribute (extern)

trusted noescape extern:"c" fun UpdateProcThreadAttribute(list: int, flags: int, attribute: int, value: int, size: int, previous: int, returned: int): i32

kernel32 UpdateProcThreadAttribute: adds the attribute (0x20002 is the list of handles a child inherits) with size bytes at value to a list; returns non-zero on success.

DeleteProcThreadAttributeList (extern)

trusted noescape extern:"c" fun DeleteProcThreadAttributeList(list: int): void

kernel32 DeleteProcThreadAttributeList: releases an attribute list InitializeProcThreadAttributeList prepared.

CreatePipe (extern)

trusted noescape extern:"c" fun CreatePipe(readHandle: int, writeHandle: int, security: int, size: int): i32

kernel32 CreatePipe: makes an anonymous pipe, storing its read and write handles; returns non-zero on success.

WaitForSingleObject (extern)

trusted noescape extern:"c" fun WaitForSingleObject(handle: int, milliseconds: int): i32

kernel32 WaitForSingleObject: waits up to milliseconds (0xFFFFFFFF: for ever) for an object to be signalled; returns 0 when it is, 258 on timeout.

__ablaRuntimeWindowsInterruptCell (fun)

trusted fun __ablaRuntimeWindowsInterruptCell(): int

The address of this thread's interrupt word (docs/design/windows-jit.md §5): 0, or 1 once another thread asked this one to stop what it waits for. Windows has no signal that would make a blocked call return EINTR, so every wait the runtime makes waits in slices of at most __ablaRuntimeWindowsWaitSlice milliseconds and returns -4 (EINTR) when it finds the word set. The compile-time guard records the address while a call runs and clears the word after it; its watchdog writes 1 through it at the deadline. The word is the thread's own, so the compiler's other threads never see an EINTR meant for one.

GetProcessTimes (extern)

trusted noescape extern:"c" fun GetProcessTimes(process: int, creation: int, exit: int, kernel: int, user: int): i32

kernel32 GetProcessTimes: stores a process's creation, exit, kernel and user times as FILETIMEs (100 ns); returns non-zero on success.

GetThreadTimes (extern)

trusted noescape extern:"c" fun GetThreadTimes(target: int, creation: int, exit: int, kernel: int, user: int): i32

kernel32 GetThreadTimes: stores a thread's creation, exit, kernel and user times as FILETIMEs (100 ns); returns non-zero on success.

GetCurrentThread (extern)

trusted noescape extern:"c" fun GetCurrentThread(): int

kernel32 GetCurrentThread: the pseudo-handle of the calling thread; never fails.

K32GetProcessMemoryInfo (extern)

trusted noescape extern:"c" fun K32GetProcessMemoryInfo(process: int, counters: int, size: int): i32

kernel32 K32GetProcessMemoryInfo: stores a process's PROCESS_MEMORY_COUNTERS (cb bytes); returns non-zero on success.

__ablaRuntimeWindowsGuardSyscall (fun)

trusted fun __ablaRuntimeWindowsGuardSyscall(number: int, a0: int): int

The compile-time guard's two entries that must not go through __ablaRuntimeWindowsSyscall: the backend sends a call whose number is a constant 4003 or 4005 here instead (src/backend/llvm/functions.ab). 4005 is the vectored handler, which runs on the stack of the thread that faulted, an overflowed one included (tests/cases/windows/fault-guard.ab): the dispatcher's frame, which grows with every call it translates, left too little room there under Wine (89's socket helper, ablac windows-net-89), so this one is small, and tools/test-windows-syscalls.sh fails when its frame grows past a fixed bound. 4003 is the watchdog thread's loop (out of line: its frame is the loop's own). Any other number: ENOSYS.

__ablaRuntimeWindowsSyscall (fun)

trusted fun __ablaRuntimeWindowsSyscall(number: int, a0: int, a1: int, a2: int, a3: int, a4: int, a5: int): int

The Linux system call number with six arguments, answered with kernel32: the result, or -errno; a number the translation does not handle ends the process with status 70 after naming it on standard error.

__ablaRuntimeWindowsTranslated (fun)

trusted fun __ablaRuntimeWindowsTranslated(): string

The Linux system call numbers __ablaRuntimeWindowsSyscall translates, in order, separated by spaces (what tools/test-windows-syscalls.sh checks against the translation).

__ablaRuntimeWindowsArguments (fun)

trusted fun __ablaRuntimeWindowsArguments(argcOut: int): int

The process's arguments for main: stores argc at argcOut and returns the address of the argv array, both from GetCommandLineW; argc is 0 and the result 0 when the command line cannot be read.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.