Add some more NT functions

This commit is contained in:
Jorge Acereda 2021-10-26 23:11:38 +02:00
parent 9b05436850
commit f21cba6cb5
3 changed files with 21 additions and 1 deletions

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc" .include "o/libc/nt/codegen.inc"
.imp gdi32,__imp_CreateRectRgn,CreateRectRgn,1097 .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

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc" .include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_MultiByteToWideChar,MultiByteToWideChar,0 .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

View file

@ -663,7 +663,7 @@ imp 'CreateProcessInternal' CreateProcessInternalW KernelBase 211
imp 'CreateProcessInternalA' CreateProcessInternalA KernelBase 210 imp 'CreateProcessInternalA' CreateProcessInternalA KernelBase 210
imp 'CreateProcessWithLogon' CreateProcessWithLogonW advapi32 1142 imp 'CreateProcessWithLogon' CreateProcessWithLogonW advapi32 1142
imp 'CreateProcessWithToken' CreateProcessWithTokenW advapi32 1143 imp 'CreateProcessWithToken' CreateProcessWithTokenW advapi32 1143
imp 'CreateRectRgn' CreateRectRgn gdi32 1097 imp 'CreateRectRgn' CreateRectRgn gdi32 1097 4
imp 'CreateRectRgnIndirect' CreateRectRgnIndirect gdi32 1098 imp 'CreateRectRgnIndirect' CreateRectRgnIndirect gdi32 1098
imp 'CreateRemoteThread' CreateRemoteThread kernel32 0 # KernelBase imp 'CreateRemoteThread' CreateRemoteThread kernel32 0 # KernelBase
imp 'CreateRemoteThreadEx' CreateRemoteThreadEx kernel32 0 # KernelBase imp 'CreateRemoteThreadEx' CreateRemoteThreadEx kernel32 0 # KernelBase