mirror of
https://github.com/SteamAutoCracks/DepotDownloaderMod.git
synced 2026-02-13 13:20:56 +01:00
DllMain provided for injection support --HG-- extra : convert_revision : svn%3A946a0da7-ebce-4904-9acb-2f1e67aed693%4081
41 lines
778 B
C++
41 lines
778 B
C++
#include <winsock2.h>
|
|
#include <windows.h>
|
|
|
|
#include "clientapp.h"
|
|
|
|
#include "utils.h"
|
|
#include "logger.h"
|
|
#include "crypto.h"
|
|
#include "DataDumper.h"
|
|
|
|
#include "interface.h"
|
|
|
|
#define STEAMTYPES_H
|
|
#include "usercommon.h"
|
|
#include "ESteamError.h"
|
|
#include "isteamclient009.h"
|
|
#include "isteamgameserver010.h"
|
|
|
|
CDataDumper* g_Dumper;
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
{
|
|
if ( fdwReason == DLL_PROCESS_ATTACH )
|
|
{
|
|
AllocConsole();
|
|
LoadLibrary("steamclient.dll");
|
|
|
|
g_Logger = new CLogger(".\\");
|
|
g_Dumper = new CDataDumper();
|
|
g_Crypto = new CCrypto(g_Dumper);
|
|
}
|
|
else if ( fdwReason == DLL_PROCESS_DETACH )
|
|
{
|
|
delete g_Crypto;
|
|
delete g_Dumper;
|
|
delete g_Logger;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|