[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2006-07-02
3
Medium Priority
?
776 Views
Last Modified: 2012-06-21
Hi,
How can i send message to service application?
0
Comment
Question by:MohammadrezaH
[X]
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
3 Comments
 
LVL 17

Accepted Solution

by:
TheRealLoki earned 500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

649 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