之前安装Visual Studio 2019,自带dumpbin工具,设置下环境变量,设置后确认环境变量是否添加成功
同时按下Ctrl + Shift,右击鼠标按键,选择在终端中打开,进行此工具的使用
分析dll文件中的接口
PS C:\Program Files (x86)\SEGGER\JLink_V616c> dumpbin -exports .\JLinkARM.dll
打印信息如下(省略部分信息)
- Microsoft (R) COFF/PE Dumper Version 14.29.30139.0
- Copyright (C) Microsoft Corporation. All rights reserved.
-
-
- Dump of file JLinkARM.dll
-
- File Type: DLL
-
- Section contains the following exports for JLinkARM.dll
-
- 00000000 characteristics
- 5944040D time date stamp Sat Jun 17 00:15:09 2017
- 0.00 version
- 1 ordinal base
- 689 number of functions
- 689 number of names
-
- ordinal hint RVA name
-
- 112 0 000C2330 JLINKARM_AddMirrorArea
- 113 1 000C22F0 JLINKARM_AddMirrorAreaEx
- 114 2 000C2230 JLINKARM_BMI_Get
- 115 3 000C2290 JLINKARM_BMI_Set
- 116 4 000C0B80 JLINKARM_BeginDownload
- 117 5 000C02A0 JLINKARM_CDC_Read
- 118 6 000C03D0 JLINKARM_CDC_SetBaudrate
- 119 7 000C0430 JLINKARM_CDC_SetHookFuncs
- 120 8 000C0310 JLINKARM_CDC_SetRTSState
- 121 9 000C0370 JLINKARM_CDC_SetTimeoutLastCDCRead
- 122 A 000C0230 JLINKARM_CDC_Write
- 123 B 000C1D20 JLINKARM_CORESIGHT_Configure
- 124 C 000C1D80 JLINKARM_CORESIGHT_ReadAPDPReg
- 125 D 000C1E80 JLINKARM_CORESIGHT_WriteAPDPReg
- 126 E 000C04E0 JLINKARM_CORE_GetFound
- ......
导出dll文件函数接口
打开生成的txt文件,可以查看函数接口