只是笔记而已························大神们直接不要看了
需要文件 : ollydbgvc7.lib Plugin.h
编译环境 VC6.0即可
#include <windows.h>
#include "Plugin.h"
#pragma comment(lib,"ollydbgvc7.lib")
static char g_szPluginName[] = "Hello,world Panda! ";
static HWND g_hWndMain = NULL;
static HINSTANCE g_hModule = NULL;
static char g_szHelloClass[32];
static HWND CreateHelloWindow(void);
LRESULT CALLBACK HelloWndProc(
HWND hWnd,
UINT msg,
WPARAM wParam,
LPARAM lParam);
BOOL APIENTRY DllMain(
HINSTANCE hModule,
DWORD reason,
LPVOID lpReserved)
{
if (DLL_PROCESS_ATTACH == reason)
{
g_hModule = hModule;
}
return TRUE;
}
extc int _export cdecl ODBG_Plugindata(
char shortname[32])
{
strcpy(shortname, g_szPluginName);
return PLUGIN_VERSION;
}
extc int _export cdecl ODBG_Plugininit(
int ollydbgversion,
HWND hw,
ulong * features)
{
int nRetCode;
if(ollydbgversion < PLUGIN_VERSION)
return -1;
g_hWndMain = hw;
nRetCode = Registerpluginclass(
g_szHelloClass,
NULL,
g_hModule,
HelloWndProc);
if(nRetCode < 0)
return -1;
Addtolist(0,0,"Hello,World! v1.0");
Addtolist(0,-1," Copyright (C) 2010 Claud");
return 0;
}
extc int _export cdecl ODBG_Pluginmenu(
int origin,
char data[4096],
void *item)
{
if(PM_MAIN == origin)
{
strcpy(data,"0 Hello | 1 About