Fabian Maurer aa97c30b01 kernel32/tests: Add sxs tests.
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 10:50:53 +02:00

21 lines
381 B
C

#include <windows.h>
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE instance_new, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = instance_new;
break;
}
return TRUE;
}
WINAPI void get_path(char *buffer, int buffer_size)
{
GetModuleFileNameA(instance, buffer, buffer_size);
}