Files
reactos/dll/win32/kernelbase/DllMain.c
T
Timo Kreuzer 43af5398d2 [KERNELBASE] Add kernelbase_ros.dll
This is a termporary solution to provide part of the needed APIs from wine modules, until we have a fully working kernelbase.
This one imports from msvcrt, kernel32 and advapi32.
2026-06-09 17:40:07 +00:00

37 lines
606 B
C

#include <windows.h>
void init_locale( HMODULE module );
// Used by wine/locale.c
char system_dir[MAX_PATH];
static
void
InitSystemDir(void)
{
GetSystemDirectoryA(system_dir, MAX_PATH);
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
InitSystemDir();
//init_locale(hinstDLL);
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}