mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
Add some more NT functions
This commit is contained in:
parent
9b05436850
commit
f21cba6cb5
3 changed files with 21 additions and 1 deletions
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_CreateRectRgn,CreateRectRgn,1097
|
||||
|
||||
.text.windows
|
||||
CreateRectRgn:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CreateRectRgn(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn CreateRectRgn,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_MultiByteToWideChar,MultiByteToWideChar,0
|
||||
|
||||
.text.windows
|
||||
MultiByteToWideChar:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_MultiByteToWideChar(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
.endfn MultiByteToWideChar,globl
|
||||
.previous
|
||||
|
|
|
@ -663,7 +663,7 @@ imp 'CreateProcessInternal' CreateProcessInternalW KernelBase 211
|
|||
imp 'CreateProcessInternalA' CreateProcessInternalA KernelBase 210
|
||||
imp 'CreateProcessWithLogon' CreateProcessWithLogonW advapi32 1142
|
||||
imp 'CreateProcessWithToken' CreateProcessWithTokenW advapi32 1143
|
||||
imp 'CreateRectRgn' CreateRectRgn gdi32 1097
|
||||
imp 'CreateRectRgn' CreateRectRgn gdi32 1097 4
|
||||
imp 'CreateRectRgnIndirect' CreateRectRgnIndirect gdi32 1098
|
||||
imp 'CreateRemoteThread' CreateRemoteThread kernel32 0 # KernelBase
|
||||
imp 'CreateRemoteThreadEx' CreateRemoteThreadEx kernel32 0 # KernelBase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue