joni194 wrote:
> Secondly is there any Method to edit windows registry in c++;
Not ANSI C++, no, but the Win32 API has Windows-specific calls for
registry access and changes.
> Third can a program written in c++ can made such that it become un-
> Terminate-able.
Again, not ANSI C++ and is Windows-specific. It is possible to modify a
process' token set under Windows such that Windows won't let a default
system admin. terminate the process (the most critical processes in
Windows are set up this way - terminating them will instantly blue
screen the OS). HOWEVER, if a system admin. also has the SE_DEBUG_NAME
("SeDebugPrivilege") token, you can't stop the user from terminating
your process. SE_DEBUG_NAME is the most powerful token in Windows that
is the closest equivalent to 'root' under Linux.
As a developer, you should be aware that doing stuff like this will
likely get your app. labeled as having virus-like behavior by many AV
vendors. Additionally, there are better things to do with your time
like writing useful applications than messing around with useless stuff
like this.
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/