Очистить переменную в оперативной памяти
Falk0ner, вс, 06/07/2008 - 15:34.
Очистить переменную в оперативной памяти If you want to erase a variable, that no other program can read it out of the memory anymore, just use this function:
ZeroMemory(Addr(yourVar), SizeOf(yourVar));
ZeroMemory(Addr(yourStr), Length(yourStr));
// ZeroMemory(Address of the variable, Size of the variable);
ZeroMemory(Addr(yourStr), Length(yourStr));
// ZeroMemory(Address of the variable, Size of the variable);
Very usefull, if you asked for a password and you want, that nobody other can get it.
Взято с сайта: http://www.swissdelphicenter.ch
Отправить комментарий