TeoDoR 12 Posted April 15, 2016 Share Posted April 15, 2016 Hi, where can modify the source I start launcher to execute a dll? Link to comment Share on other sites More sharing options...
IceShiva 150 Posted April 15, 2016 Share Posted April 15, 2016 What dll? Link to comment Share on other sites More sharing options...
TeoDoR 12 Posted April 16, 2016 Author Share Posted April 16, 2016 21 hours ago, IceShiva said: What dll? 1 Link to comment Share on other sites More sharing options...
VegaS 1087 Posted April 16, 2016 Share Posted April 16, 2016 int Titan2_FunctionGetFileSize(char* FileName) { HANDLE pFile_done = CreateFileA(FileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); return Titan2_FunctionGetFileSize(pFile_done, NULL); } HINSTANCE hGetProcIDDLL = LoadLibrary("name_dll_vegas.dll"); if (hGetProcIDDLL == NULL) { MessageBox(NULL, "The customer name can not start without dll_vegas.dll, please update your autopatcher.", "#VegaS - System Error", MB_ICONSTOP); return 0; } else { if (Titan2_FunctionGetFileSize("name_dll_vegas.dll") != 54200) //kb { MessageBox(NULL, "DLL has been changed, please update.", "#VegaS - System Error", MB_ICONSTOP); return 0; } } Link to comment Share on other sites More sharing options...
TeoDoR 12 Posted April 16, 2016 Author Share Posted April 16, 2016 1 hour ago, VegaS said: int Titan2_FunctionGetFileSize(char* FileName) { HANDLE pFile_done = CreateFileA(FileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); return Titan2_FunctionGetFileSize(pFile_done, NULL); } HINSTANCE hGetProcIDDLL = LoadLibrary("name_dll_vegas.dll"); if (hGetProcIDDLL == NULL) { MessageBox(NULL, "The customer name can not start without dll_vegas.dll, please update your autopatcher.", "#VegaS - System Error", MB_ICONSTOP); return 0; } else { if (Titan2_FunctionGetFileSize("name_dll_vegas.dll") != 54200) //kb { MessageBox(NULL, "DLL has been changed, please update.", "#VegaS - System Error", MB_ICONSTOP); return 0; } } Thanks, and i have a question. wich is file for this function? Link to comment Share on other sites More sharing options...
VegaS 1087 Posted April 16, 2016 Share Posted April 16, 2016 (edited) UserInterface.cpp Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
TeoDoR 12 Posted April 16, 2016 Author Share Posted April 16, 2016 Thanks. Link to comment Share on other sites More sharing options...
VegaS 1087 Posted April 19, 2016 Share Posted April 19, 2016 On 16.04.2016 at 10:00 PM, TeoDoR said: Thanks. Kp Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now