SHARE
TWEET

Untitled

a guest Dec 2nd, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // dllmain.cpp : Defines the entry point for the DLL application.
  2. #include "pch.h"
  3.  
  4. #define DllExport __declspec(dllexport)
  5.  
  6. DllExport void __cdecl Salutation();
  7.  
  8. DllExport void __cdecl Salutation()
  9. {
  10.     MessageBoxA(NULL, "Hello OpenPlanet!", "OP DLL Import Test", MB_OK);
  11. }
  12.  
  13. BOOL APIENTRY DllMain(HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved)
  14. {
  15.     switch (ul_reason_for_call)
  16.     {
  17.     case DLL_PROCESS_ATTACH:
  18.     case DLL_THREAD_ATTACH:
  19.     case DLL_THREAD_DETACH:
  20.     case DLL_PROCESS_DETACH:
  21.         break;
  22.     }
  23.     return TRUE;
  24. }
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