Communicationg with a running NT Service

Posted on 2003-02-19
Medium Priority
Last Modified: 2010-04-04
I'm writing an NT service using D6 on Win2K.

What is the best way to write a program to communicate with the service and control it?

Any sample code or articles will be very helpfull.

Thanks in advance.
Question by:emadat
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 22

Expert Comment

ID: 7983036
I've found that TCP/IP is the slickest way to communicate.  Just open up a listener on a port and wait for a connection.  You can probably use one of the many TCP/IP components.


Author Comment

ID: 7983400
I've thought about doing so, as it might ease remote management too; but I'm afraid that it might risk security.

Author Comment

ID: 7983752
I've thought about doing so, as it might ease remote management too; but I'm afraid that it might risk security.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 8211876
you should use indy client and indy server.
using multithread,
and creating your own language protocole to communicate between server and client (try to make a dll, tu keep this way for other projects).
like that, you can build a password testing, or any king of security protocol.
But don't forget that a tcp component will give you the data from a buffer, and so you can receive two commands or packets in the same buffer read, so you have to knwo exactly what you read.
Take care about buffer overflow also (read only the data size you need and drop the rest)

Expert Comment

ID: 8224710
Dear expert(s),

A request has been made to close this Q in CS:

Without a response in 72 hrs, a moderator will finalize this question by:

- Saving this Q as a PAQ and refunding the points to the questionner

When you agree or disagree, please add a comment here.

Thank you.


Community Support Moderator
Experts Exchange

Accepted Solution

modulo earned 0 total points
ID: 8239450
Saving this Q as a PAQ and refunding the 200 points to the questionner


Community Support Moderator
Experts Exchange

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question