上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: Source.def LIBRARY exportDll2 EXPORTS Add exportDll2.h // The following ifdef block is the standard way of creating macros which make exporting // fro 阅读全文
posted @ 2021-08-11 22:31 磐正 阅读(57) 评论(0) 推荐(0)
摘要: 这里有个疑问,VS2017生成dll时为何会同时生成一个lib文件? 静态库生成lib,动态库也生成lib。 动态库生成的那个lib一般管它叫"导入库",这样的lib在大多数情况下要比静态库的lib小,里面不包含涉及到的函数的具体代码,里面只包含"这个函数在什么dll里面叫什么名字"这样的信息。即函 阅读全文
posted @ 2021-08-11 21:17 磐正 阅读(660) 评论(0) 推荐(0)
摘要: 1.隐式链接(需要.dll,.lib,.h) 隐式链接就是在程序开始执行时就将DLL文件加载到内存当中,而显示链接,是实时加载,程序需要的时候加载,不需要的时候,卸载。 Windows程序bin目录包含了可执行文件(.exe) 和 动态链接库(.dlll), lib目录包含了静态库。 只要没有在程序 阅读全文
posted @ 2021-08-11 20:52 磐正 阅读(610) 评论(0) 推荐(0)
摘要: #include<stdio.h> //引用库的时候必须包含两个文件 #include"../exportDll2/exportDll2.h"//1.头文件 int main() { int result; result = Add(1, 2); printf("%d", result); retu 阅读全文
posted @ 2021-08-11 18:57 磐正 阅读(151) 评论(0) 推荐(0)
摘要: retn 4 是个函数返回指令。 以前一直纠结这个retn的寄存器操作顺序,手头正好在调试,详细跟了一下,豁然开朗,特分享。先假设个环境:retn 4未执行时,ESP=0013feb8;EIP=5d1d8b97;而[0013feb8]=7c974a19 执行retn 4之后: 首先EIP=[0013 阅读全文
posted @ 2021-08-09 15:04 磐正 阅读(289) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/liny000/article/details/81260385 阅读全文
posted @ 2021-08-05 20:48 磐正 阅读(197) 评论(0) 推荐(0)
摘要: #include <wdm.h> NTSTATUS DriverUnload(PDRIVER_OBJECT driver) { UNREFERENCED_PARAMETER(driver); DbgPrint("Unload driver"); return STATUS_SUCCESS; } NT 阅读全文
posted @ 2021-08-05 20:46 磐正 阅读(41) 评论(0) 推荐(0)
摘要: // driver.c #include <ntddk.h> void DriverUnload(PDRIVER_OBJECT pDriverObject); NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRe 阅读全文
posted @ 2021-08-05 20:42 磐正 阅读(38) 评论(0) 推荐(0)
摘要: //测试代码: #include <ntddk.h> VOID DriverUnload(PDRIVER_OBJECT driver) { DbgPrint(("Uninstall Driver Sucess!")); } NTSTATUS DriverEntry(PDRIVER_OBJECT dr 阅读全文
posted @ 2021-08-05 20:34 磐正 阅读(25) 评论(0) 推荐(0)
摘要: [File] => [Symbol File Path] 1.初始值:srv* 2.修改为:SRV*c:\mysymbol* http://msdl.microsoft.com/download/symbols 未成功 https://blog.csdn.net/lxc1014/article/de 阅读全文
posted @ 2021-08-05 20:32 磐正 阅读(875) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页