Skip to content

Commit

Permalink
a bunch of hacky imports for kernel32
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Sep 15, 2023
1 parent 4635327 commit 8274cd3
Show file tree
Hide file tree
Showing 4 changed files with 852 additions and 0 deletions.
26 changes: 26 additions & 0 deletions dll/win32/kernel32/kernel32.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1263,3 +1263,29 @@
;@ stdcall -arch=x86_64 uaw_wcsicmp(wstr wstr)
;@ stdcall -arch=x86_64 uaw_wcslen(wstr)
;@ stdcall -arch=x86_64 uaw_wcsrchr(wstr long)



@ stdcall -version=0x600+ K32EnumDeviceDrivers(ptr long ptr)
@ stdcall -version=0x600+ -stub K32EnumPageFilesA(ptr ptr)
@ stdcall -version=0x600+ -stub K32EnumPageFilesW(ptr ptr)
@ stdcall -version=0x600+ K32EnumProcessModules(long ptr long ptr)
@ stdcall -version=0x600+ K32EnumProcessModulesEx(long ptr long ptr long)
@ stdcall -version=0x600+ K32EnumProcesses(ptr long ptr)
@ stdcall -version=0x600+ K32GetDeviceDriverBaseNameA(ptr ptr long)
@ stdcall -version=0x600+ K32GetDeviceDriverBaseNameW(ptr ptr long)
@ stdcall -version=0x600+ K32GetDeviceDriverFileNameA(ptr ptr long)
@ stdcall -version=0x600+ K32GetDeviceDriverFileNameW(ptr ptr long)
@ stdcall -version=0x600+ K32GetModuleBaseNameA(long long ptr long)
@ stdcall -version=0x600+ K32GetModuleBaseNameW(long long ptr long)
@ stdcall -version=0x600+ K32GetModuleFileNameExA(long long ptr long)
@ stdcall -version=0x600+ K32GetModuleFileNameExW(long long ptr long)
@ stdcall -version=0x600+ K32GetModuleInformation(long long ptr long)
@ stdcall -version=0x600+ K32GetProcessMemoryInfo(ptr ptr long)
@ stdcall -stub -version=0x600+ PowerClearRequest(long long)
@ stdcall -stub -version=0x600+ PowerCreateRequest(ptr)
@ stdcall -stub -version=0x600+ PowerSetRequest(long long)
@ stdcall -version=0x600+ K32GetPerformanceInfo(ptr long)
@ stdcall -version=0x600+ K32QueryWorkingSet(ptr ptr long)
@ stdcall -version=0x600+ K32QueryWorkingSetEx(ptr ptr long)
@ stdcall -version=0x600+ K32GetMappedFileNameW(ptr ptr ptr long)
1 change: 1 addition & 0 deletions dll/win32/kernel32/kernel32_vista/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ list(APPEND SOURCE
GetTickCount64.c
InitOnce.c
sync.c
k32.c
vista.c)

add_library(kernel32_vista_static ${SOURCE})
Expand Down
Loading

0 comments on commit 8274cd3

Please sign in to comment.