Solved

How to Send message to a service application or process run in other user.

Posted on 2006-07-02
3
764 Views
Last Modified: 2012-06-21
Hi,
How can i send message to service application?
0
Comment
Question by:MohammadrezaH
3 Comments
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 125 total points
ID: 17028004
What you are looking for is inter-process communication

You could also use sockets (e.g. TCP/IP) - I'm seeing more and more processes use this method.
Simply drop a TWSocket, or TidTCPCLient or some other TCp server socket onto your service datamodule and handle the requests from a TCP client.

There are a lot of people who use RemObjects, which supports many connection methods, encryption, etc.
http://www.remobjects.com/page.asp?id={364BA043-7A12-4453-8F96-97BDA56BC0E0}
(EE may not get this link right so copy it manually from above)

here's how to do it with WM_COPYDATA
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20280702.html?query=wm_copydata&topics=85

If you can get to grips with it, you can use COM/DCOM
I had this going fine. 1 side note was that if you connected via DCOM remotely, and the service was nt running, it would start it.
Sometimes you have to mess with DCOMCNFG.exe to get things right though.

If the service is going to be logged on as the same username as the logged on user, you can use sharedmemory
(you can do it no matter what user ison, but have to do a bit more code)
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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