a guest Dec 2nd, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // dllmain.cpp : Defines the entry point for the DLL application.
- #include "pch.h"
- #define DllExport __declspec(dllexport)
- DllExport void __cdecl Salutation();
- DllExport void __cdecl Salutation()
- MessageBoxA(NULL, "Hello OpenPlanet!", "OP DLL Import Test", MB_OK);
- BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
- switch (ul_reason_for_call)
- case DLL_PROCESS_ATTACH:
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- case DLL_PROCESS_DETACH:
- return TRUE;
RAW Paste Data