sakiir

Untitled

Sep 12th, 2014
1,266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <windows.h>
  2. #include <stdio.h>
  3.  
  4. typedef int (__cdecl *MYPROC)(LPWSTR); // Typedef pour la fonction
  5.  
  6. int main(int argc, char **argv)
  7. {
  8.     HINSTANCE hinstLib; // Instance de la DLL
  9.     MYPROC DisplayMessage; // Pointeur sur fonction de la fonction DisplayMessage()
  10.     hinstLib = LoadLibrary("slk53nyeoo.dll"); // On Charge la DLL
  11.     DisplayMessage = (MYPROC) GetProcAddress(hinstLib, "DisplayMessage"); // On charge la fonction dans ProcAdd
  12.     DisplayMessage(); // On l'execute ..  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment