Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <stdio.h>
- typedef int (__cdecl *MYPROC)(LPWSTR); // Typedef pour la fonction
- int main(int argc, char **argv)
- {
- HINSTANCE hinstLib; // Instance de la DLL
- MYPROC DisplayMessage; // Pointeur sur fonction de la fonction DisplayMessage()
- hinstLib = LoadLibrary("slk53nyeoo.dll"); // On Charge la DLL
- DisplayMessage = (MYPROC) GetProcAddress(hinstLib, "DisplayMessage"); // On charge la fonction dans ProcAdd
- DisplayMessage(); // On l'execute ..
- }
Advertisement
Add Comment
Please, Sign In to add comment