using dumpbin.exe
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: using dumpbin.exe

  1. #1
    Join Date
    Dec 2004
    Posts
    49

    using dumpbin.exe

    Hi there ..


    How to use (dumpbin.exe) to get the parameters (Arguments) of Exported Functions

    in a .dll file


    thanks.

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: using dumpbin.exe

    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Dec 2004
    Posts
    49

    Re: using dumpbin.exe

    Quote Originally Posted by Krishnaa


    Thanks but :


    the command

    C:\>undname ?func1@a@@AAEXH@Z
    Microsoft (R) C++ Name Undecorator
    Copyright (C) Microsoft Corporation 1981-2000. All rights reserved.Undecoration
    of :- "?func1@a@@AAEXH@Z"
    is :- "private: void __thiscall a::func1(int)"


    is helpful, but in my case i don't have the function name in the form
    "?func1@a@@AAEXH@Z", I rather have it in the form "func1" as
    exported from the .dll file

  4. #4
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: using dumpbin.exe

    Quote Originally Posted by hthm
    Thanks but :


    the command

    C:\>undname ?func1@a@@AAEXH@Z
    Microsoft (R) C++ Name Undecorator
    Copyright (C) Microsoft Corporation 1981-2000. All rights reserved.Undecoration
    of :- "?func1@a@@AAEXH@Z"
    is :- "private: void __thiscall a::func1(int)"


    is helpful, but in my case i don't have the function name in the form
    "?func1@a@@AAEXH@Z", I rather have it in the form "func1" as
    exported from the .dll file
    You can only see parameters of C++ exported functions, the functions which are exported as extern "C" or using .def file are not decorated, they are exported C way which dont decorate the export name.
    Regards,
    Ramkrishna Pawar

  5. #5
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: using dumpbin.exe

    Is that sure decorated function ? if yes You can use dumbin to dump the export names anf then use undname.exe on those names.
    Regards,
    Ramkrishna Pawar

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,927

    Re: using dumpbin.exe

    Quote Originally Posted by hthm
    How to use (dumpbin.exe) to get the parameters (Arguments) of Exported Functions

    in a .dll file
    In common case - no way. The dll must be provided along with the correspondent header file (so called "SDK" concept) to be used properly. DUMPBIN has no ability to recover prototype of exported function from binary module since such information is lost on binary file linkage phase.

    BTW, the ability of UNDNAME to recover the function prototype is not more than side effect of C++ linkage specifics.
    Last edited by Igor Vartanov; July 17th, 2006 at 08:31 AM.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center