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

  • Home
  • SEARCH
  • 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 7032815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:59:01+00:00 2026-05-28T00:59:01+00:00

I have coded an application which is meant to be an extension to an

  • 0

I have coded an application which is meant to be an extension to an already existing program. However, said program doesn’t allow any methods for loading extensions/plugins, or whatever you would call them. For this reason I’ve been thinking over a couple of possibilities, among which are injecting a C++ DLL and going crazy with it, but I’m more interested in doing the entire thing in managed C#.

Both the target program and my own program are written in C#, and therefore managed. Now, I know for a fact that if I set up a reference to the target program in my own project, I can “access” its properties, fields, etc in the Visual Studio editor, but there’s no way I can ever get “real” values from those, since I can’t have the target program run at the time of reading its members, which means I can’t get any “real-world” data from it.

My idea is this: if I were to create a launcher, which injects a DLL (C++, but that’d be the only C++ part) into the target process which sets up an AppDomain, places the host process in that AppDomain, and then proceeds to load my program into the same process and AppDomain, would I be able to access the “real-time” values of the target program?

I know this is a long shot, and actually testing this would take days if not weeks of coding. That’s why I ask here; and perhaps it is a bit too unorthodox and far-fetched, but I think there’s actually a chance this might work. In theory.

So, simplified a bit: Inject DLL into target process -> Create AppDomain -> Place host process in AppDomain -> Load MyProgram.exe into Process and AppDomain -> Access target process’ methods and properties

  • 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-05-28T00:59:01+00:00Added an answer on May 28, 2026 at 12:59 am

    I’m not sure I understood what you really want to do, but if what you’re going after is to exchange data between an application and another that will be running on the same machine, then why not use WCF communication using the IPC binding (offered by the NetNamedPipeBinding class). I believe this is a much more reasonable and easier to maintain and test than your suggested solution.

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

Sidebar

Related Questions

I have an application which was developed under Windows, but for gcc. The code
In my console application have an abstract Factory class Listener which contains code for
I have a basic ajax application, which will not work, instead the php code
I have coded some JavaScript to perform an ajax call in an asp.net application.
today I have coded a test case for my application, to see how transactions
I have an application that was coded with JSPs and now we are in
I have an mvc application that has been coded to use Windows authentication and
I need to have a Win32 application load a hard coded AES-256 key, ideally
We have a large enterprise application where projects are scoped designed and finally coded
I have a java application which has a GUI in both English and French,

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.