mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
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.
37 lines
606 B
C
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;
|
|
}
|