Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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
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.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month12 days, 1 hour left to enroll

564 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