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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:06:29+00:00 2026-05-14T21:06:29+00:00

I need to access COM vtable which have entries of those functions which are

  • 0

I need to access COM vtable which have entries of those functions which are exposed to outside world under some specific interface in C#.

I’ve accessed and iterate over the types enclosed in the TLB with LoadTypeLib and playing with ITypeInfo.

Now only thing I need to access one by one those methods inside vtable of COM Interface and need to call them at RUNTIME one by one.

I need COM vtable address and its indexed entries (i.e function addresses).

  • 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-14T21:06:29+00:00Added an answer on May 14, 2026 at 9:06 pm

    You can create a C# wrapper from the TLB using the TlmImp.exe program. See How to: Generate Primary Interop Assemblies Using Tlbimp.exe for more info.

    e.g. tlbimp LibUtil.tlb /primary /keyfile:CompanyA.snk /out:LibUtil.dll

    Edit: To reflect comment.

    Since C# code is always running in the CLR any call to the unmanaged world will need to be marshalled correctly. You have the option of

    (a) allowing the generated wrappers of just doing the interop, or

    (b) you can optimise the wrappers your self.

    (c) The other thing you can do is to write your oen wrapper in managed c++ and then call through the vtable directly. I suspect this will give you a very low call overhead.

    (d) The final option is to just write a simple unmanaged c dll with a single function and use P/Invoke to call it directly from the managed code.

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

Sidebar

Related Questions

How can I iterate/access the vtable of COM coclass which will implement the methods
Possible Duplicate: Access x86 COM from x64 .NET I have a COM object which
I need to access a .net application which has no public COM or API.
I have an application which need to access context in a lot of different
I have a flash 8 swf file at www.mydomain.com and I need to access
I need to access COM port (console) via script to access our DSL modem.
I need to access a third-party COM server with following interface definition (idl): interface
I need access to the uint64_t typedef from stdint.h in some wrapper code that
I have two different modules that need access to a single file (One will
I am doing one application in android for that I need to access com.android.internal.telephony

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.