Jump to content
  • 0

Load dll


TeoDoR

Question

  • Answers 7
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

7 answers to this question

Recommended Posts

  • 0

 

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

  • 0
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.