473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Changing NT-Style Services and the Registry


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?

If not, what's the easiest method to check the registry for that and
eliminate it if it exists? I've toyed with the idea of outputting a
..reg file and running that through the shell command, but I'd like to
avoid that and do this through native / API code.

Example code would be preferred - I'm pretty new to C++, so any
information is helpful.

Thanks in advance,
Shawn McNaughton

P.S. If someone submits a more direct method to kill the service, help
with the registry access code is still appriciated - I will be using it
for other parts of this project.

--
Itomeshi
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #1
1 975
Itomeshi wrote:
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/de..._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
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: M Mueller | last post by:
OS - Windows NT 4.0 Enterprise Edition DB Version - 8.1.7.4.1 When trying to change the Character Set from US7ASCII to WE8MSWIN1252, we complete the following steps from SVRMGR, connected as...
4
by: Scott Holland | last post by:
HELP - Need to connect to DB2 database on AIX from NT server. Also AS/400 from NT Server -- I am experienced in ORACLE and a novice at DB2. What tools would be the equivalent of Net*8 or...
8
by: Sue | last post by:
Does this "NT-based machine (NT, 2K, XP)" mean a WindowsXP machine is a NT-based machine? What does NT stand for and what does it mean? What is CDONTS? What does this mean - "The machine...
1
by: Tony Riv | last post by:
When Whidbey is released, will I be able to use ASP.NET on an NT server? I heard rumours that it doesnt require IIS and there may be a module for Apache to run ASP.NET I wish microsoft had...
1
by: K.N.Ranjit | last post by:
Hi to all friends out there.I am presently working in TCS and I am supposed to do the work given to me in line cordinates using VB.net.But over here I face a problem (ie) I want my coordinate...
1
by: IM | last post by:
Hi all, I've done some sniffing around but apart from one post in this newsgroup haven't been able to find much on this topic. We have recently moved (well, quite a while ago but that's...
0
by: Hari potter | last post by:
Hi all, I have an asp.net website that references some dlls. The web site has been configured to use anonymous access(with windows credential user name and password) and also Windows...
11
by: Timofmars | last post by:
I'm try to Unload DB2 data from a table into a record sequential file on NT. I can an unload on Mainframe, but it doesn't seem to be an option in NT. In NT, all I can do is export/import. I can...
2
by: =?Utf-8?B?c3RhZ2VybGVp?= | last post by:
We would like to change the password for the ASPNET account on our W2k3 servers running IIS 6.0 and .NET 1.1. Will we run into problems? Is there a way to determine the current password, in case...
2
by: DG | last post by:
Hello everyone! Has anyone every seen the following behavior? Oracle 9.? running on AIX, no problems here Windows NT machine, Oracle client installed on the NT machine with ODBC driver v...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.