Jump to content

Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 

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

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? :D

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 11

      Metin2 Closed Beta Content (2003-2004)

    2. 11

      Metin2 Closed Beta Content (2003-2004)

    3. 0

      Football Ground

    4. 11

      Metin2 Closed Beta Content (2003-2004)

    5. 0

      Error compile binary Zentoria2

    6. 11

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.