Am 13.10.2011 16:12, schrieb Gregory M. Turner:
Just one other small note about this. Although AFAIK Windows won't let you
delete a loaded PE file, it /will/ let you rename it. I don't even think you
need any special privileges to do it (don't quote me). (Don't test this using
explorer, it has anti-running-program-renaming code for some unfathomable
reason).
This suggests an even better (maybe) solution to the problem. Unless there are
other platforms than Win32/64 that need this (?), the entire .exe shell-game
codepath could be sent to /dev/null and all platforms could work the same.
Maybe this breaks on networked drives or something. Probably you guys are 10
steps ahead of me on this, but I just thought I'd mention it in case you
weren't.
Just tested: It works on a network file system as well.
Regards,
Sven
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus