Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8189517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:18:11+00:00 2026-06-07T03:18:11+00:00

I have two applications called SENDER and RECEIVER . RECEIVER will be launched by

  • 0

I have two applications called SENDER and RECEIVER.

RECEIVER will be launched by SENDER with the System.Diagnostics.Process.Start method

RECEIVER will be launched in hidden mode so it does not have a MainWindowHandle.

Then we could use Win32.WM_COPYDATA in order send message to RECEIVER, but it needs MainWindowHandle so we can’t.

What I need is ability to send and receive messages periodically by any method.

I checked the following link for a manual about MainWindowHandle, but it didn’t help:

Send message to a Windows process (not its main window)

One solution might be an object from System.Diagnostics.Process which might help us to send messages to a process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:18:12+00:00Added an answer on June 7, 2026 at 3:18 am

    There are different ways to share information between 2 processes.

    First at all you have to think if both processes are going to be always in the same machine or not when your application scales up.

    Different Machines

    • Use TCP/UDP socket connection (Can be the quickest solution)
    • Use MSMQ
    • Use WebServices, WCF or Restful Web Service.
    • Reading from a common entry in a db. (Not recommended)
    • Named Pipes (Check this) (Named pipes can be in same machine or fly over a network)

    Always in same machine.

    • Shared memory (You can use memory mapped files)
    • Reading from a common file (You can use FileWatcher)

    Preferred choice: MSMQ

    If I were you I would preserve the ability of having processes in different machines so I would use, as Maarten suggested, two windows services that uses MSMQ to communicate. Why?

    1. MSMQ allows you not to lose messages (in case RECEIVER is down)
    2. MSMQ allows you to have processes in same machine or in different machines
    3. Windows service give you the ability to start/stop the processes easily
    4. Windows service can me monitored my SNMP and in general they integrate easily with windows admin tools.

    Second preferred choice: Restful Web Service

    If you don’t want to use MSMQ I would use two Restful Web Service hosted in IIS to communicate both processes. It can be useful if you have an scenario where RECEIVER is not interested in messages from SENDER if they arrive late.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two desktop applications. After closing the first application, the first application will
I have two applications in codeigniter. Called App1 and App2 under application folder. i
I have two applications Web Socket and Web Service created in .Net/Web Form and
I have two applications: c++ service and a RoR web server (they are both
I have two applications in my project 'test' the applications are one.mxml and two.mxml
public enum ObjectType { Country=0, Region=1, Province=2, City=3, Hotel=4 } I have two applications
I have two Android applications with a similar functionality but different drawables and layouts.
I have two separated applications, one written in Java and other in Erlang. Both
I have two .NET applications that talk to each other over a named pipe.
I have two different applications and I am using GroupLab Networking to communicate between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.