Fix Windows 7 support (#19)

This change pays off technical debt with the function -> DLL mappings in
libc/nt/master.sh, which was originally defined based on binary analysis
on Windows 10. It's now been updated so the kernel32/kernelbase/advapi32
imports should be exactly as they are written, on the MSDN documentation
and that wouldn't have been easy without Geoff Chappell's work thank him

https://www.geoffchappell.com/studies/windows/win32/index.htm
This commit is contained in:
Justine Tunney 2020-12-28 13:47:19 -08:00
parent 12065100e1
commit 0e85b136ae
1665 changed files with 13129 additions and 2637 deletions

View file

@ -0,0 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AcquireSRWLockExclusive,AcquireSRWLockExclusive,0
.text.windows
AcquireSRWLockExclusive:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_AcquireSRWLockExclusive(%rip)
leave
ret
.endfn AcquireSRWLockExclusive,globl
.previous

View file

@ -0,0 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AcquireSRWLockShared,AcquireSRWLockShared,0
.text.windows
AcquireSRWLockShared:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_AcquireSRWLockShared(%rip)
leave
ret
.endfn AcquireSRWLockShared,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ActivateActCtx,ActivateActCtx,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddConsoleAliasA,AddConsoleAliasA,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddConsoleAliasW,AddConsoleAliasW,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddDllDirectory,AddDllDirectory,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddRefActCtx,AddRefActCtx,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddResourceAttributeAce,AddResourceAttributeAce,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddSIDToBoundaryDescriptor,AddSIDToBoundaryDescriptor,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddScopedPolicyIDAce,AddScopedPolicyIDAce,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddVectoredContinueHandler,AddVectoredContinueHandler,0
.text.windows
AddVectoredContinueHandler:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AddVectoredContinueHandler(%rip),%rax
jmp __sysv2nt
.endfn AddVectoredContinueHandler,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AddVectoredExceptionHandler,AddVectoredExceptionHandler,0
.text.windows
AddVectoredExceptionHandler:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AddVectoredExceptionHandler(%rip),%rax
jmp __sysv2nt
.endfn AddVectoredExceptionHandler,globl
.previous

View file

@ -0,0 +1,14 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AllocConsole,AllocConsole,0
.text.windows
AllocConsole:
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_AllocConsole(%rip)
leave
ret
.endfn AllocConsole,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AllocateUserPhysicalPages,AllocateUserPhysicalPages,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AllocateUserPhysicalPagesNuma,AllocateUserPhysicalPagesNuma,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AreFileApisANSI,AreFileApisANSI,0

View file

@ -0,0 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_AttachConsole,AttachConsole,0
.text.windows
AttachConsole:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_AttachConsole(%rip)
leave
ret
.endfn AttachConsole,globl
.previous

2
libc/nt/kernel32/Beep.s Normal file
View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_Beep,Beep,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CallNamedPipeW,CallNamedPipeW,0
.text.windows
CallNamedPipe:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CallNamedPipeW(%rip),%rax
jmp __sysv2nt8
.endfn CallNamedPipe,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CallbackMayRunLong,CallbackMayRunLong,0

View file

@ -0,0 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CancelIo,CancelIo,0
.text.windows
CancelIo:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_CancelIo(%rip)
leave
ret
.endfn CancelIo,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CancelIoEx,CancelIoEx,0
.text.windows
CancelIoEx:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CancelIoEx(%rip),%rax
jmp __sysv2nt
.endfn CancelIoEx,globl
.previous

View file

@ -0,0 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CancelSynchronousIo,CancelSynchronousIo,0
.text.windows
CancelSynchronousIo:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_CancelSynchronousIo(%rip)
leave
ret
.endfn CancelSynchronousIo,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CancelWaitableTimer,CancelWaitableTimer,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CeipIsOptedIn,CeipIsOptedIn,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ChangeTimerQueueTimer,ChangeTimerQueueTimer,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CheckRemoteDebuggerPresent,CheckRemoteDebuggerPresent,0
.text.windows
CheckRemoteDebuggerPresent:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CheckRemoteDebuggerPresent(%rip),%rax
jmp __sysv2nt
.endfn CheckRemoteDebuggerPresent,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CheckTokenCapability,CheckTokenCapability,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CheckTokenMembershipEx,CheckTokenMembershipEx,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ClearCommBreak,ClearCommBreak,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ClearCommError,ClearCommError,0

View file

@ -0,0 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CloseHandle,CloseHandle,0
.text.windows
CloseHandle:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_CloseHandle(%rip)
leave
ret
.endfn CloseHandle,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ClosePackageInfo,ClosePackageInfo,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ClosePrivateNamespace,ClosePrivateNamespace,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CompareFileTime,CompareFileTime,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CompareStringA,CompareStringA,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CompareStringEx,CompareStringEx,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CompareStringOrdinal,CompareStringOrdinal,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CompareStringW,CompareStringW,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ConnectNamedPipe,ConnectNamedPipe,0
.text.windows
ConnectNamedPipe:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ConnectNamedPipe(%rip),%rax
jmp __sysv2nt
.endfn ConnectNamedPipe,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ContinueDebugEvent,ContinueDebugEvent,0
.text.windows
ContinueDebugEvent:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ContinueDebugEvent(%rip),%rax
jmp __sysv2nt
.endfn ContinueDebugEvent,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ConvertDefaultLocale,ConvertDefaultLocale,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ConvertFiberToThread,ConvertFiberToThread,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ConvertThreadToFiber,ConvertThreadToFiber,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_ConvertThreadToFiberEx,ConvertThreadToFiberEx,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CopyContext,CopyContext,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CopyFile2,CopyFile2,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CopyFileExW,CopyFileExW,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CopyFileW,CopyFileW,0
.text.windows
CopyFile:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CopyFileW(%rip),%rax
jmp __sysv2nt
.endfn CopyFile,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateActCtxW,CreateActCtxW,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateBoundaryDescriptorW,CreateBoundaryDescriptorW,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateConsoleScreenBuffer,CreateConsoleScreenBuffer,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateDirectoryA,CreateDirectoryA,0
.text.windows
CreateDirectoryA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateDirectoryA(%rip),%rax
jmp __sysv2nt
.endfn CreateDirectoryA,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateDirectoryExW,CreateDirectoryExW,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateDirectoryW,CreateDirectoryW,0
.text.windows
CreateDirectory:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateDirectoryW(%rip),%rax
jmp __sysv2nt
.endfn CreateDirectory,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateEventA,CreateEventA,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateEventExA,CreateEventExA,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateEventExW,CreateEventExW,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateEventW,CreateEventW,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFiber,CreateFiber,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFiberEx,CreateFiberEx,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFile2,CreateFile2,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFileA,CreateFileA,0
.text.windows
CreateFileA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateFileA(%rip),%rax
jmp __sysv2nt8
.endfn CreateFileA,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFileMappingFromApp,CreateFileMappingFromApp,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFileMappingNumaW,CreateFileMappingNumaW,0
.text.windows
CreateFileMappingNuma:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateFileMappingNumaW(%rip),%rax
jmp __sysv2nt8
.endfn CreateFileMappingNuma,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFileMappingW,CreateFileMappingW,0
.text.windows
CreateFileMapping:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateFileMappingW(%rip),%rax
jmp __sysv2nt8
.endfn CreateFileMapping,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateFileW,CreateFileW,0
.text.windows
CreateFile:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateFileW(%rip),%rax
jmp __sysv2nt8
.endfn CreateFile,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateHardLinkA,CreateHardLinkA,0
.text.windows
CreateHardLinkA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateHardLinkA(%rip),%rax
jmp __sysv2nt
.endfn CreateHardLinkA,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateHardLinkW,CreateHardLinkW,0
.text.windows
CreateHardLink:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateHardLinkW(%rip),%rax
jmp __sysv2nt
.endfn CreateHardLink,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateIoCompletionPort,CreateIoCompletionPort,0
.text.windows
CreateIoCompletionPort:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateIoCompletionPort(%rip),%rax
jmp __sysv2nt
.endfn CreateIoCompletionPort,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateMemoryResourceNotification,CreateMemoryResourceNotification,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateMutexA,CreateMutexA,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateMutexExA,CreateMutexExA,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateMutexExW,CreateMutexExW,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateMutexW,CreateMutexW,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateNamedPipeW,CreateNamedPipeW,0
.text.windows
CreateNamedPipe:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateNamedPipeW(%rip),%rax
jmp __sysv2nt8
.endfn CreateNamedPipe,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreatePipe,CreatePipe,0
.text.windows
CreatePipe:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreatePipe(%rip),%rax
jmp __sysv2nt
.endfn CreatePipe,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreatePrivateNamespaceW,CreatePrivateNamespaceW,0

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateProcessA,CreateProcessA,0
.text.windows
CreateProcessA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateProcessA(%rip),%rax
jmp __sysv2nt10
.endfn CreateProcessA,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateProcessW,CreateProcessW,0
.text.windows
CreateProcess:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateProcessW(%rip),%rax
jmp __sysv2nt10
.endfn CreateProcess,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateRemoteThread,CreateRemoteThread,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateRemoteThreadEx,CreateRemoteThreadEx,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateSemaphoreExW,CreateSemaphoreExW,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateSemaphoreW,CreateSemaphoreW,0

View file

@ -1,5 +1,5 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateSymbolicLinkA,CreateSymbolicLinkA,236
.imp kernel32,__imp_CreateSymbolicLinkA,CreateSymbolicLinkA,0
.text.windows
CreateSymbolicLinkA:

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateSymbolicLinkW,CreateSymbolicLinkW,0
.text.windows
CreateSymbolicLink:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateSymbolicLinkW(%rip),%rax
jmp __sysv2nt
.endfn CreateSymbolicLink,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateThread,CreateThread,0
.text.windows
CreateThread:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateThread(%rip),%rax
jmp __sysv2nt6
.endfn CreateThread,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateThreadpool,CreateThreadpool,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateThreadpoolCleanupGroup,CreateThreadpoolCleanupGroup,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateThreadpoolIo,CreateThreadpoolIo,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateThreadpoolTimer,CreateThreadpoolTimer,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateThreadpoolWait,CreateThreadpoolWait,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateThreadpoolWork,CreateThreadpoolWork,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateTimerQueue,CreateTimerQueue,0

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateTimerQueueTimer,CreateTimerQueueTimer,0

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateWaitableTimerA,CreateWaitableTimerA,253
.text.windows
CreateWaitableTimerA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateWaitableTimerA(%rip),%rax
jmp __sysv2nt
.endfn CreateWaitableTimerA,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateWaitableTimerExA,CreateWaitableTimerExA,254
.text.windows
CreateWaitableTimerExA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateWaitableTimerExA(%rip),%rax
jmp __sysv2nt
.endfn CreateWaitableTimerExA,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateWaitableTimerExW,CreateWaitableTimerExW,0
.text.windows
CreateWaitableTimerEx:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateWaitableTimerExW(%rip),%rax
jmp __sysv2nt
.endfn CreateWaitableTimerEx,globl
.previous

View file

@ -0,0 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_CreateWaitableTimerW,CreateWaitableTimerW,0
.text.windows
CreateWaitableTimer:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateWaitableTimerW(%rip),%rax
jmp __sysv2nt
.endfn CreateWaitableTimer,globl
.previous

View file

@ -0,0 +1,2 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_DeactivateActCtx,DeactivateActCtx,0

Some files were not shown because too many files have changed in this diff Show more