[Steam]SteamDllMain (-clientapp)

Discussion in 'Source Codes & Snippets' started by Steam006, February 21, 2010.

  1. Steam006

    Steam006 New Member

    Code:
    #pragma comment(linker, "/export:SteamDllMain=SteamUI.SteamDllMain,@1")
    or

    Code:
    #define S_API extern "C" __declspec( dllexport )
    #define STEAM_CALL __cdecl
     
    typedef int (STEAM_CALL *_SteamDllMain)(int a, int b);
    _SteamDllMain oSteamDllMain;
     
    S_API int STEAM_CALL SteamDllMain(int a, int b)
    {
       char szCurDir[MAX_PATH];
       GetCurrentDirectory(MAX_PATH,szCurDir);
     
       char szSteamPath[MAX_PATH];
       strcpy_s(szSteamPath,szCurDir);
       strcat_s(szSteamPath,"\\SteamUI.dll");
     
       HMODULE hLib;
       int nRetVal;
       
       hLib = LoadLibrary(szSteamPath);
       if(hLib)
       {
          oSteamDllMain = (_SteamDllMain)GetProcAddress(hLib,"SteamDllMain");
          nRetVal = oSteamDllMain(a, b);
          FreeLibrary(hLib);
       }
       return nRetVal;
    }
     
  2. billyboby

    billyboby New Member

    does this change ur client info or something?
    is there any way to changes a bought verson of css's game number or client info.
    so that i can use it with free steam but go to all server's?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice