SHARE
TWEET

Untitled

a guest Jan 24th, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //dynamiczne linkowanie bibioteki z cpp
  2. int CallMyDLLC(unsigned char* Tablica, int Szer, int szerokoscbajt, int start, int koniec)
  3. {
  4.     HINSTANCE hGetProcIDDLL = LoadLibrary("JADLLC.dll");
  5.     FARPROC lpfnGetProcessID = GetProcAddress(HMODULE(hGetProcIDDLL), "CppOnlyBlur");
  6.     typedef void(__cdecl* pICFUNC)(unsigned char*, int, int, int, int);
  7.     pICFUNC Algorithm;
  8.     Algorithm = pICFUNC(lpfnGetProcessID);
  9.  
  10.     Algorithm(Tablica, Szer, szerokoscbajt, start, koniec);
  11.  
  12.     FreeLibrary(hGetProcIDDLL);
  13.     return 0;
  14. }
  15.  
  16. //dynamiczne linkowanie bibioteki z asm
  17. int CallMyDLLAsm(unsigned char* Tablica, int Szer, int szerokoscbajt, int start, int koniec)
  18. {
  19.     HINSTANCE hGetProcIDDLL = LoadLibrary("JADLL.dll");
  20.     FARPROC lpfnGetProcessID = GetProcAddress(HMODULE(hGetProcIDDLL), "AsmOnlyBlur");
  21.     typedef void(__cdecl* pICFUNC)(unsigned char*, int, int, int, int);
  22.     pICFUNC Algorithm;
  23.     Algorithm = pICFUNC(lpfnGetProcessID);
  24.  
  25.     Algorithm(Tablica, Szer, szerokoscbajt, start, koniec);
  26.  
  27.     FreeLibrary(hGetProcIDDLL);
  28.     return 0;
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top