cosmopolitan/libc/nt/user32/MonitorFromWindow.S
Bach Le baad1df71d
Add several NT functions (#1318)
With these addtions, I could build and run a
[sokol](https://github.com/floooh/sokol) application (using OpenGL) on
both Linux and Windows.
2024-10-27 21:10:32 -07:00

18 lines
330 B
ArmAsm

#include "libc/nt/codegen.h"
.imp user32,__imp_MonitorFromWindow,MonitorFromWindow
.text.windows
.ftrace1
MonitorFromWindow:
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov __imp_MonitorFromWindow(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn MonitorFromWindow,globl
.previous