ReactOS 0.4.17-dev-573-g8315b8c
k32_psapi_hacks.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS SDK
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Win7 K32 psapi export shims for llvm-mingw runtime libraries
5 * COPYRIGHT: Copyright 2026 Ahmed Arif <arif.ing@outlook.com>
6 */
7
8#include <windef.h>
9#include <winbase.h>
10#include <psapi.h>
11
12/* llvm-mingw's libunwind looks up module unwind sections through this Win7+ kernel32 export: forward to
13 * the classic psapi.dll one */
14BOOL
18 _Out_ HMODULE *lphModule,
20 _Out_ LPDWORD lpcbNeeded)
21{
22 return EnumProcessModules(hProcess, lphModule, cb, lpcbNeeded);
23}
BOOL WINAPI DECLSPEC_HOTPATCH EnumProcessModules(HANDLE process, HMODULE *module, DWORD count, DWORD *needed)
Definition: debug.c:1058
static MonoProfilerRuntimeShutdownBeginCallback cb
Definition: metahost.c:118
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI K32EnumProcessModules(_In_ HANDLE hProcess, _Out_ HMODULE *lphModule, _In_ DWORD cb, _Out_ LPDWORD lpcbNeeded)
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:71
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
uint32_t * LPDWORD
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6