The task is as follows: if you start the program and it is added to auto start, then display a message (well, for example, ShowMessage ).

Principle as AntiWinLocker .

    1 answer 1

    specify, do you want to place your program in autorun or do you want to control that the autorun program is registered?

    In any case, you check 2 things: 1 folder autorun 2 registry

    • No, check the recording programs in autorun. Well, for example, some virus wanted to go to the autorun, and the program checks it displays the message "This is how some virus virus goes to the autorun." Well, or so the program monitors the autorun, if someone is recorded there then they write ShowMessage. - Vlad Andreev
    • that's right, you create a service, in the service a timer with an interval of, for example, 1 second, you get a list of what is in autorun, you compare it with the old list, if something is added you display a message. I will not be too lazy to write the code and add it to the answer. - vdk company
    • I will try: D - Vlad Andreev
    • bad idea, read how processmonitor works - zb '15
    • Try that will not turn out ask ask prompt :) - vdk company