Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by Adolf ( 8 years ago )
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include <Windows>

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
  MessageBoxA(0, "From DLL", "Hitler did nothing wrong!", MB_ICONINFORMATION);
   break;
    case DLL_THREAD_ATTACH:
  MessageBoxA(0, "From DLL", "Hitler created the Reich-Thread!", MB_ICONINFORMATION);
  break;
    case DLL_THREAD_DETACH:
  MessageBoxA(0, "From DLL", "The Reich-Thread has fallen!", MB_ICONINFORMATION);
  break;
    case DLL_PROCESS_DETACH:
  MessageBoxA(0, "From DLL", "DAS REICH IST GEFALLEN!11", MB_ICONINFORMATION);
  break;
    }
    return TRUE;
}

 

Revise this Paste

Your Name: Code Language: