Resurrect <windows.h> as <windowsesque.h>

This commit is contained in:
Justine Tunney 2024-02-21 16:40:32 -08:00
parent 68b9479f0c
commit 3eb405e0e2
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 4340 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateEventA,CreateEventA
.text.windows
.ftrace1
CreateEventA:
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov __imp_CreateEventA(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateEventA,globl
.previous