473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

External application events

Can one application consume an event from another running application? I
would assume this is what is happen when an application monitors lets say a
port. I have accomplished something similar with remoting but find this to
be a flaky and hard to implement for the user. The two applications with
always be on the same computer.

Regards,
John
Nov 15 '05 #1
4 3106
As both applications would be in different processes, you would need OS IPC
primitives for this. I would probably use a named win32 Event for this, but
would depend on your needs.

--
William Stacey, MVP

"John J. Hughes II" <no@invalid.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Can one application consume an event from another running application? I
would assume this is what is happen when an application monitors lets say a port. I have accomplished something similar with remoting but find this to be a flaky and hard to implement for the user. The two applications with
always be on the same computer.

Regards,
John

Nov 15 '05 #2

Hi John,

Thanks for posting in this group.
Based on my understanding, you want to make an application that can capture
another application's changes(events), that is a monitor application.
This is however a big topic, it based on the application you wanted to
monitor.

If another application is a .Net managed application, the recommanded
interprocess communication way is remoting which can also be used on the
same machine.
As you said, you already know how to get this done.

If you wanted to monitor some certain applications such as office series,
you can use automation(add com reference), which is very convenient for you.
For more information, please search automation in MSDN or KB.

If you wanted to monitor a common win32 application which is writen by
yourself, you can P/invoke many of these conventional interprocess
communication technicals such as named pipe, CopyData windows message,
Memory Mapping File, to get this done.(Actually, the named pipe, CopyData
use MMF under the hood).
For more information, please refer to win32 books talk about interprocess
communication.

If you wanted to monitor a win32 application, you know little about, I
think you should use Spy++ or other tools to undertand its mechanism, then
P/invoke remote hook to inject a unmanaged dll into that application's
process space. For more information, please refer to hook in MSDN.

Btw: for the first situation, beside remoting, you also can P/invoke all
those win32 interprocess communication technicals: MMF, named pipe, etc.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #3
Thanks for the response... I will try the named pipe in the other response
first because it will afford me the option of sending data too but I will
certainly keep this in mind.

Regard,
John
"William Stacey" <st***********@mvps.org> wrote in message
news:uf**************@tk2msftngp13.phx.gbl...
As both applications would be in different processes, you would need OS IPC primitives for this. I would probably use a named win32 Event for this, but would depend on your needs.

--
William Stacey, MVP

"John J. Hughes II" <no@invalid.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Can one application consume an event from another running application? I would assume this is what is happen when an application monitors lets say
a
port. I have accomplished something similar with remoting but find this

to
be a flaky and hard to implement for the user. The two applications

with always be on the same computer.

Regards,
John


Nov 15 '05 #4
Thanks for the response... I will try the named pipe being the one I am
mostly likely able to accomplish in a short time.

Regards,
John
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: knocte | last post by:
Hello. I am a web developer very worried about "bloat code" and "languages mixture". So, since some time, I always try to avoid completely the use of javascript in XHTML/HTML files. This leads...
24
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C#...
6
by: Dmitry Duginov | last post by:
My web application uses resource files to keep localized strings etc. Those resource files prepared by external console program, which extracts this stuff from the database. Is there a way to...
0
by: lcifers | last post by:
I have written an application and tested it as a Windows executable. It works fine. The application uses an external COM application to process some existing files. But I can't seem to start that...
4
by: Paul Fi | last post by:
I want to handle external events from my c# app, especially to events from windows explorer (windows shell) and windows media player how do i go about handling such external events? *** Sent...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
2
by: Dan | last post by:
Hi all, I have a quick question about the formatting of external text files. I am trying to make a webpage for a local church that will display what is on in the coming weeks. I have done this...
3
by: lookaround | last post by:
Hi everyone, I need some help... I call an external exe (a command-line tool) with Process.Start through this code: try { p = new Process(); p.StartInfo.UseShellExecute = false;...
1
by: JasonT | last post by:
Hi. I have created a dll in VC++ 08 that exports a CLR windows form class. I call into this dll from an external (closed source, third-party) application to instantiate the form and embed it into...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.