2019-04-13 12:21:56 -04:00
|
|
|
|
|
|
|
//#include "dll.h"
|
2024-05-24 11:01:25 +03:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
2019-04-13 12:21:56 -04:00
|
|
|
#include "Windows.h"
|
|
|
|
#ifdef _WIN64
|
|
|
|
#define DLL_NAME "steam_api64.dll"
|
|
|
|
#else
|
|
|
|
#define DLL_NAME "steam_api.dll"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern "C" __declspec( dllexport ) void *CreateInterface( const char *pName, int *pReturnCode )
|
|
|
|
{
|
2024-04-06 07:49:07 +02:00
|
|
|
//PRINT_DEBUG("%s", pName);
|
2019-04-13 12:21:56 -04:00
|
|
|
HMODULE steam_api = LoadLibraryA(DLL_NAME);
|
|
|
|
void *(__stdcall* create_interface)(const char*) = (void * (__stdcall *)(const char*))GetProcAddress(steam_api, "SteamInternal_CreateInterface");
|
|
|
|
|
|
|
|
return create_interface(pName);
|
|
|
|
}
|