If programA starts Delphi programB, is there any way that programB can determine whether it was started by programA or by some other program?

Recommended Answers

All 2 Replies

Only, if you let ProgramA pass a specific parameter to ProgramB. But that could be faked manually, so there is no guarantee.

Need to program but decide what the flag state or leaving any other sign for the program B.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.