----- Original Message -----
> ----- Original Message -----

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.

-gmt

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to