2020-11-02 06:08:10 +01:00
|
|
|
#include "pch.h"
|
|
|
|
#include "Hooks.h"
|
|
|
|
|
2020-12-01 02:35:35 +01:00
|
|
|
static const char* VERSION = "0.3.0";
|
2020-11-02 06:08:10 +01:00
|
|
|
|
|
|
|
DWORD WINAPI InitMain(LPVOID lpParam)
|
|
|
|
{
|
|
|
|
AllocConsole();
|
|
|
|
FILE* fDummy;
|
|
|
|
freopen_s(&fDummy, "CONIN$", "r", stdin);
|
|
|
|
freopen_s(&fDummy, "CONOUT$", "w", stderr);
|
|
|
|
freopen_s(&fDummy, "CONOUT$", "w", stdout);
|
|
|
|
|
2020-11-17 20:11:33 +01:00
|
|
|
std::cout << "SpotifyKeyDumper version: " << VERSION << std::endl;
|
2020-11-02 06:08:10 +01:00
|
|
|
|
|
|
|
Hooks::Init();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
|
|
|
|
{
|
|
|
|
if (dwAttached == DLL_PROCESS_ATTACH)
|
|
|
|
CreateThread(NULL, 0, &InitMain, NULL, 0, NULL);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|