R
Ronald Laeremans [MSFT]
Itomeshi said:I'm currently writing a simple, unmanaged, VC++ 2003 unmanaged app
without .NET libraries (for project specific reasons).
My current stumbling block is how to delete a service. The only method
I know of by hand is to go into the registry, navigate to
HKLM/System/CurrentControlSet/Services, and then look for the offending
virus that registers itself as the service "Network Client" with an
executable nwclnt.exe in the system32 directory. It is under a "nwclnt"
key. After this step, I can successfully delete the executable and
finish repairing Windows Update.
Is there any easier way to kill a service? I need to stop it and then
delete those keys. Any other method?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/service_functions.asp
is the entry point to the documentation of the list of functions you
need. There is also sample code to be found in some of the topics
refererenced from there.
Ronald Laeremans
Visual C++ team