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 8717001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:12:57+00:00 2026-06-13T06:12:57+00:00

In C# when Application A calls Application B using an application handle such as

  • 0

In C# when Application A calls Application B using an application handle such as (IAppB)Activator.CreateInstance(Type.GetTypeFromProgID('AppB')).CallMe(), how does App A send the call to App B? I’m not asking for a hardware layer explanation, I’m trying to figure out if it is possible to somehow capture method calls to an application in order to mess with them.

  • 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-13T06:12:57+00:00Added an answer on June 13, 2026 at 6:12 am

    Given the usage and names, in all likelihood you are making a method call to an out-of-process COM server. The mechanics of it can fill a book (many have been written about) so just a brief overview.

    The ball starts rolling by starting the COM server, using configuration info that’s stored in the registry. The underlying native api call is CoCreateInstance(). The COM infrastructure then again uses the registry to discover the DLLs that act as the proxy and the stub. The job of the proxy is to emulate the exact COM interface that you are using. In this case the default interface of the coclass, the one that declared the CallMe() method.

    The proxy serializes the passed arguments, if any, then calls RPC to emit a call request to the server. At the server end, the stub acts as the client code. It deserializes the arguments and makes the actual call. The call result, at least the HRESULT, and possibly any arguments that are passed by reference and need to be copied back then travel back to the proxy to complete the call.

    Messing with this scheme at the low-level RPC boundary isn’t practical. You could however technically create your own proxy and stub. There are significant obstacles, they are normally auto-generated from a description of the interface written in the IDL language by the MIDL tool. At the very least, you’ll need that IDL so you know exactly what the interface looks like. That tends to be difficult since you rarely own the source code of the server so don’t have the IDL either. You can possibly decompile the type library if the server has one. That’s unlikely since you are making a late-bound call. Last but not least, you’ll need to know RPC pretty well. Difficult too, it’s very obscure.

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

Sidebar

Related Questions

I've got a legacy application that calls outlook using extended MAPI to send out
I have created an android application that calls (using kSOAP library) a SOAP based
I am using Google GeoCoding services. I have a PHP application which calls the
Using JDeveloper as my IDE, I have a web application which calls services provided
In my MVC application, I am using repeated ajax calls for each 10 secs.
I am creating an application which involves so many web-service calls. I am using
We are using jQuery in our application for making AJAX calls. How do I
I'm getting in trouble. I'm trying to emulate the call Application.Run using Application.DoEvents... this
IN my application i am using this code to Call my First Class Xib.Here
I am using the Win32 API call SetForegroundWindow to set focus to another application's

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.