Hi,
warum will das so nicht klappen?
warum will das so nicht klappen?
Code:
#include <Windows.h>
#include <thread>
DWORD WINAPI Entrypoint(const LPVOID& reserved)
{
MessageBox(NULL, "test", "test", NULL);
return 0;
}
bool WINAPI DllMain(const HINSTANCE& handleDLL, const DWORD& callingReason, const LPVOID& reserved)
{
if(callingReason == DLL_PROCESS_ATTACH)
{
std::thread threadEntry(Entrypoint, reserved);
threadEntry.join();
}
return 1;
}