博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
用 MapFileAndCheckSum 函数检测 exe 或 dll 是否被修改 - 回复 "Joe Lo" 的问题
阅读量:6942 次
发布时间:2019-06-27

本文共 649 字,大约阅读时间需要 2 分钟。

  hot3.png

问题来源:

unit Unit1;interfaceuses  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,  Dialogs, StdCtrls;type  TForm1 = class(TForm)    Button1: TButton;    procedure Button1Click(Sender: TObject);  end;var  Form1: TForm1;implementation{$R *.dfm}uses ImageHlp; {MapFileAndCheckSum 定义在这个单元}procedure TForm1.Button1Click(Sender: TObject);const  exeFile = 'c:\windows\system32\notepad.exe'; {exe or dll}var  size1,size2: Cardinal;begin  MapFileAndCheckSum(exeFile, size1, size2);   ShowMessageFmt('原生大小: %d; 修改后大小: %d', [size1,size2]);  {函数返回 0 表示已顺利检测, 但还要判断 size1、size2 是否相等}end;end.

转载于:https://my.oschina.net/hermer/blog/320686

你可能感兴趣的文章
文件的内容操作
查看>>
Css基础2
查看>>
知识一些备忘
查看>>
正则遇到的问题集合
查看>>
寒假作业2
查看>>
Python paramiko
查看>>
ng-options 如何实现其中一项option禁选
查看>>
DEV带筛选行CheckBox选中问题
查看>>
from语法导入
查看>>
Python配置mysql指引
查看>>
页面底部input被弹出来的键盘遮挡(iOS系统)—附解决方案
查看>>
在Linux系统安装Nodejs 最简单步骤
查看>>
Spring 一二事(5) - 依赖注入
查看>>
linux 下的emoji在MariaDB中的字符集修改
查看>>
C#面向对象设计模式纵横谈——5.Factory Method 工厂方法模式(创建型模式)
查看>>
三个臭皮匠,顶上一个诸葛亮——在Google Ideathon上Design Thinking分享
查看>>
084:QuerySet API详解prefetch_related方法
查看>>
RMQ算法
查看>>
Myeclipse 启动tomcat项目报Out of memory: java heap space
查看>>
easyui-笔记
查看>>