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 */
14
BOOL
15
WINAPI
16
K32EnumProcessModules
(
17
_In_
HANDLE
hProcess
,
18
_Out_
HMODULE
*lphModule,
19
_In_
DWORD
cb
,
20
_Out_
LPDWORD
lpcbNeeded)
21
{
22
return
EnumProcessModules
(
hProcess
, lphModule,
cb
, lpcbNeeded);
23
}
EnumProcessModules
BOOL WINAPI DECLSPEC_HOTPATCH EnumProcessModules(HANDLE process, HMODULE *module, DWORD count, DWORD *needed)
Definition:
debug.c:1058
cb
static MonoProfilerRuntimeShutdownBeginCallback cb
Definition:
metahost.c:118
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
K32EnumProcessModules
BOOL WINAPI K32EnumProcessModules(_In_ HANDLE hProcess, _Out_ HMODULE *lphModule, _In_ DWORD cb, _Out_ LPDWORD lpcbNeeded)
Definition:
k32_psapi_hacks.c:16
hProcess
_In_ BOOL _In_ HANDLE hProcess
Definition:
mapping.h:71
_Out_
#define _Out_
Definition:
no_sal2.h:160
_In_
#define _In_
Definition:
no_sal2.h:158
psapi.h
LPDWORD
uint32_t * LPDWORD
Definition:
typedefs.h:59
winbase.h
windef.h
WINAPI
#define WINAPI
Definition:
msvc.h:6
sdk
lib
llvm-compat
k32_psapi_hacks.c
Generated on Sat Aug 1 2026 06:20:40 for ReactOS by
1.9.6