代码如下
// hfhf.cpp : Defines the entry point for the DLL application.
//#include "stdafx.h"
#include "hfhf.h"
BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
 )
{
    switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
run();
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
    }
    return TRUE;
} void  run()
{
  HMODULE h2=GetModuleHandle("hfhf");
  DWORD dddd=(DWORD)GetProcAddress(h2,"change");//这里不能获得自己的实际地址。为什么??
//别问为什么要获得,,拜托,我需要实际地址,不是AIT表的地址
if(dddd==NULL)
::MessageBox(NULL,"error","",0);}
 void change()
{
int a=0;
return;}