Example 7 Step 1b

From SkullSecurity
Revision as of 16:18, 16 March 2007 by 68.144.105.148 (talk) (New page: #include <stdio.h> #include <windows.h> typedef void (__fastcall *fcnShowMessage) (const char* message, int unk, int intDisplayUntil, int unk0); static const fcnShowMessage ShowMessage =...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. include <stdio.h>
  2. include <windows.h>

typedef void (__fastcall *fcnShowMessage) (const char* message, int unk, int intDisplayUntil, int unk0); static const fcnShowMessage ShowMessage = (fcnShowMessage) 0x00469380;

BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { switch(ul_reason_for_call) { case DLL_PROCESS_ATTACH: ShowMessage("\x03Loading test plugin v2", 0, GetTickCount() + 30000, 0); break;

case DLL_PROCESS_DETACH: ShowMessage("\x03Loading test plugin v2", 0, GetTickCount() + 30000, 0); break; }

return TRUE; }