mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
Merge pull request #5903 from BNTB/master
Add FreeLibraryAndExitThread in kernel32. Add EnumProcessModules in psapi (new file).
This commit is contained in:
@@ -489,6 +489,7 @@ foreign kernel32 {
|
||||
LoadLibraryW :: proc(c_str: LPCWSTR) -> HMODULE ---
|
||||
LoadLibraryExW :: proc(c_str: LPCWSTR, hFile: HANDLE, dwFlags: LoadLibraryEx_Flags) -> HMODULE ---
|
||||
FreeLibrary :: proc(h: HMODULE) -> BOOL ---
|
||||
FreeLibraryAndExitThread :: proc(hLibModule: HMODULE, dwExitCode: DWORD) -> VOID ---
|
||||
GetProcAddress :: proc(h: HMODULE, c_str: LPCSTR) -> rawptr ---
|
||||
|
||||
LoadResource :: proc(hModule: HMODULE, hResInfo: HRSRC) -> HGLOBAL ---
|
||||
|
||||
9
core/sys/windows/psapi.odin
Normal file
9
core/sys/windows/psapi.odin
Normal file
@@ -0,0 +1,9 @@
|
||||
#+build windows
|
||||
package sys_windows
|
||||
|
||||
foreign import psapi "system:Psapi.lib"
|
||||
|
||||
@(default_calling_convention="system")
|
||||
foreign psapi {
|
||||
EnumProcessModules :: proc(hProcess: HANDLE, lphModule: ^HMODULE, cb: DWORD, lpcbNeeded: LPDWORD) -> BOOL ---
|
||||
}
|
||||
Reference in New Issue
Block a user