#include "stdafx.hh"

// Dllmain here

#if doghook_platform_windows()

extern u32 __stdcall doghook_process_attach(void *a);

u32 __stdcall doghook_process_attach(void *a) { return 0; }

__declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hModule,
                                            DWORD   reason,
                                            LPVOID  lpReserved) {
    switch (reason) {
    case DLL_PROCESS_ATTACH:
        CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)&doghook_process_attach, hModule, 0, nullptr);
        break;
    }

    return true;
}
#else
void __attribute__((constructor)) startup() {}

void __attribute__((destructor)) shutdown() {}
#endif
