问题描述
据我所知,是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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!