在Delphi中使用SecureZeroMemory [英] Using SecureZeroMemory in Delphi

查看:175
本文介绍了在Delphi中使用SecureZeroMemory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,是C的 SecureZeroMemory 功能
WinnNT.h>的功能实现在中所定义。 RtlSecureZeroMemory 函数

I understand there is a SecureZeroMemory function in C. The function implementation is defined in <WinnNT.h> as RtlSecureZeroMemory function.

QNS:如何能 SecureZeroMemory 在德尔福使用?难道德尔福发布包含函数库?我用Delphi 7 Windows.pas 只有 ZeroMemory 而不是 SecureZeroMemory

QNS: How can SecureZeroMemory be used in Delphi? Did Delphi release a library that contains that function? I'm using Delphi 7. Windows.pas only has ZeroMemory but not SecureZeroMemory.

推荐答案

据我了解,之间的唯一区别 ZeroMemory SecureZeroMemory SecureZeroMemory 实现为内联函数,确保其不会被编译器优化掉了。

As far as I understand, the only difference between ZeroMemory and SecureZeroMemory is SecureZeroMemory is implemented as an inline function, ensuring it won't be optimised out by the compiler.

我不认为德尔福进行编译器优化的同一水平,所以 ZeroMemory 通话不应该被优化掉了。

I don't think Delphi performs the same level of compiler optimisation, so ZeroMemory calls shouldn't be optimised out.

这篇关于在Delphi中使用SecureZeroMemory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆