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.
Thanks.
helyonprime96Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
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 ...
0
 
helyonprime96Author Commented:
and thats all?
0
 
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 ...

0
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
0
 
helyonprime96Author Commented:
youre master
0
 
helyonprime96Author Commented:
for what is used functions VirualAlloc and Virtual Protect?
0
 
Geert GOracle dbaCommented:
VirtualAlloc:
http://msdn.microsoft.com/en-us/library/aa366887%28v=vs.85%29.aspx
in short reserving some memory in your app's virtual memory address space

VirtualProtect
http://msdn.microsoft.com/en-us/library/aa366898%28v=vs.85%29.aspx
for changing the protection on that memory area:
read/write/etc

0
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.