Protect process in delphi

Hello experts.
Please help me with one thing.

i need to make a app that automaticaly encrypts,protects self process.
To understand me program be protected from Process Terminate, WriteProcessMemory or other.

But the principial is Process Terminate.
I know a method, but this requires a file (protectdriver.sys) who is localized as a rootkit.

Anybody help me to write this program.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Geert GConnect With a Mentor Oracle dbaCommented:
run your program (created as a service) with an adminstrator user
only allow this user to start/stop the app

doing it from code is not possible
and tends to be looked at as a virus program

in the end,
you can kill any application by just pulling out the electric cord ...
helyonprime96Author Commented:
and thats all?
Geert GOracle dbaCommented:
yes, this assumes within a company that you are a network admin
or the network admin is willing to do that for you ...

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

helyonprime96Author Commented:
ok thanks
helyonprime96Author Commented:
youre master
helyonprime96Author Commented:
for what is used functions VirualAlloc and Virtual Protect?
Geert GOracle dbaCommented:
in short reserving some memory in your app's virtual memory address space

for changing the protection on that memory area:

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.