Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jul : Know if application was executing by another process
| Subject: | Know if application was executing by another process |
| Posted by: | "Jazmin" (spam@spam.com) |
| Date: | Wed, 4 Jul 2007 14:20:34 |
I have two .exe files: LOADER.EXE, and APPLICATION.EXE. The former
executes the latter.
I don't want the user to execute "Application.exe" directly. How can I
prevent this?
I mean...
program Application
begin
if not WasCalledBy('loader.exe')
then Application.Terminate;
end
Thanks!