C开源代码如下:

#include <stdio.h>
#include <windows.h>
#include <winbase.h>

typedef void (*Myproc)(LPTSTR);

int main()
{
  HINSTANCE LibHandle;
  Myproc ProcAdd;

  printf("作者:admin-神风 QQ1976604307\n");
  char dllbuf[11];//char dllbuf[11]="msvcrt.dll";
  char sysbuf[20];//char sysbuf[20] ="system" ;
  char cmdbuf[16]="command.com";
  printf("请输入需要查找的dll名:"); 
  gets(dllbuf);
  printf("请输入需要查找的函数名:"); 
  gets(sysbuf);
  LibHandle=LoadLibrary(dllbuf);
  ProcAdd=(Myproc)GetProcAddress(LibHandle,sysbuf);
  
  
  printf("%s LibHandle = //x%x\n",dllbuf,LibHandle);
  printf("%s = //x%x\n",sysbuf,ProcAdd);
    system("pause");
  return 0;
}

 

【原创】自己动手写的一个查看函数API地址的小工具

相关文章:

  • 2021-10-09
  • 2021-10-16
  • 2021-12-09
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-12-26
猜你喜欢
  • 2021-09-12
  • 2022-02-08
  • 2022-01-17
  • 2021-07-03
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案