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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:30:21+00:00 2026-05-28T15:30:21+00:00

Unfortunately, for some reason I cannot fathom, I haven’t been able to get windbg

  • 0

Unfortunately, for some reason I cannot fathom, I haven’t been able to get windbg to recognise my extension.

#ifndef EXPT_API
#define EXPT_API __declspec(dllexport)
#endif

extern "C" EXPT_API HRESULT CALLBACK help(PDEBUG_CLIENT Client, PCSTR args)
{
    IDebugControl* Control;
    IDebugSymbols* Symbols;

    DebugCreate(__uuidof(IDebugClient),(void **)&Client);
    Client->QueryInterface(__uuidof(IDebugControl), (void **)&Control);
    Client->QueryInterface(__uuidof(IDebugSymbols), (void **)&Symbols);

    // TODO: Extension code goes here:

    Control->Output(DEBUG_OUTPUT_NORMAL, "A sample help message.");

    return S_OK;
}

It all compiles fine, however, whenever I attempt to load the extension from windbg, I get this:

!Extension.help
No export help found

I load up my .dll into IDA Pro Free, and look at the exports, and there it is: “help”. I have been trying to figure this out for hours. Any help you could offer would be very greatly appreciated. Thanks a lot.

  • 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-28T15:30:22+00:00Added an answer on May 28, 2026 at 3:30 pm

    The chances are you’re using the stdcall calling convention which results in name mangling even with extern “C”. If you were using the cdecl this would not be the case. It’s possible that you require stdcall if you’re following the standard method of writing a WinDBG extension so the best way to work around the name mangling is to use a .def file which will allow you to call the exports exactly what you want.

    See this previous question for a good rundown on the subtleties:

    __cdecl or __stdcall on Windows?

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

Sidebar

Related Questions

For some reason, I'm not able to resolve Hibernate Validator messages. I have the
I have recently launched my application into the Google Play store but unfortunately some
I've made a website, to test the html5 audio. Unfortunately some browser doesn't support
This code attempts to resize images in a directory called imgs. Unfortunately for some
We run a number of web applications written in PHP. Unfortunately there are some
Unfortunately I have to do some interaction with IBM's UniData database system. I am
I've got some code which works fine in IE but unfortunately not in Google
We unfortunately find ourselves having to support our product in IE 6 because some
I need to make some code to talk to a SOAP web service. Unfortunately
I'm doing some fairly simple cross-platform TCP socket programming. I have unfortunately found out

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.