下面的代码直接根据网上一篇文章修改
调用URLDownloadToFile函数(URLMON.DLL)
直接实现网络下载
但不知道哪部分错了,一直报非法的win32程序
以下是去全部代码,因为没权限没法上传文件
不知道是否影响格式
00000000h: 4D 5A 00 00 62 79 20 72 6F 62 73 6C 6F 76 65 40 ; MZ..by robslove@
00000010h: 68 6F 74 6D 61 69 6C 2E 63 6F 6D 00 00 00 00 00 ; hotmail.com.....
00000020h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
00000030h: 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 ; ............@...
00000040h: 50 45 00 00 4C 01 02 00 00 00 00 00 00 00 00 00 ; PE..L...........
00000050h: 00 00 00 00 70 00 0F 01 0B 01 00 00 00 02 00 00 ; ....p...........
00000060h: 00 00 00 00 00 00 00 00 79 01 00 00 00 00 00 00 ; ........y.......
00000070h: 00 00 00 00 00 00 40 00 00 10 00 00 00 02 00 00 ; ......@.........
00000080h: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ; ................
00000090h: 00 30 00 00 00 02 00 00 00 00 00 00 02 00 00 00 ; .0..............
000000a0h: 00 01 00 00 00 00 00 00 00 10 00 00 00 10 00 00 ; ................
000000b0h: 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ; ................
000000c0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
000000d0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
000000e0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
000000f0h: 00 00 00 00 00 00 00 00 28 01 00 00 28 00 00 00 ; ........(...(...
00000100h: 00 00 00 00 00 00 00 00 00 02 00 00 00 10 00 00 ; ................
00000110h: 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 ; ................
00000120h: 00 00 00 00 60 00 00 60 58 01 00 00 00 00 00 00 ; ....`..`X.......
00000130h: 00 00 00 00 6E 01 00 00 00 00 00 00 00 00 00 00 ; ....n...........
00000140h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
00000150h: 00 00 00 00 00 00 00 00 31 00 55 52 4C 44 6F 77 ; ........1.URLDow
00000160h: 6E 6C 6F 61 64 54 6F 46 69 6C 65 41 00 00 75 72 ; nloadToFileA..ur
00000170h: 6C 6D 6F 6E 2E 64 6C 6C 00 B8 01 00 00 00 6A 00 ; lmon.dll.?...j.
00000180h: 6A 00 68 C2 11 40 00 68 A0 11 40 00 6A 00 E8 02 ; j.h?@.h?@.j.?
00000190h: 00 00 00 C9 C3 FF 25 20 11 40 00 00 00 00 00 00 ; ...擅? .@......
000001a0h: 68 74 74 70 3A 2F 2F 77 77 77 2E 62 61 69 64 75 ; http://www.baidu
000001b0h: 2E 63 6F 6D 2F 69 6D 67 2F 6C 6F 67 2E 67 69 66 ; .com/img/log.gif
000001c0h: 00 00 63 3A 5C 5C 74 5C 74 2E 6A 70 67 00 00 00 ; ..c:\\t\t.jpg...
000001d0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
000001e0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
000001f0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课