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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:07:34+00:00 2026-06-10T22:07:34+00:00

I am trying to obtain the module GUIDs from the current process by enumerating

  • 0

I am trying to obtain the module GUIDs from the current process by enumerating the loaded modules using EnumerateLoadedModules64 and in the enumeration callback load modules using SymLoadModuleEx and after that getting module information using SymGetModuleInfoW64.

For all modules with an existing PDB this call succeeds and the PdbSig70 contains the GUID for the module. However, if I delete the PDB file, the call succeeds but the GUID is empty.

I know that the information is in the exe file since dumpbin.exe /headers [exefile] can display the GUID information without the PDB file.

The question is how to obtain this information from the running process. I want this information to be able to have users producing crash reports without a PDB with callstack addresses and module information so that I can look up the symbols using a symbol server at a later time.

  • 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-10T22:07:36+00:00Added an answer on June 10, 2026 at 10:07 pm

    Was trying to do the same thing and found this:

    struct CV_INFO_PDB70
    {
        DWORD  CvSignature;
        GUID Signature;
        DWORD Age;
        BYTE PdbFileName[];
    };
    
    ULONG dirEntrySize;
    BOOLEAN mappedAsImage = TRUE;
    size_t imageAddress = static_cast<size_t>(IMAGEHLP_MODULEW64_VAR.BaseOfImage);
    IMAGE_DEBUG_DIRECTORY* debugDirectory = reinterpret_cast<IMAGE_DEBUG_DIRECTORY*>(sImageDirectoryEntryToDataEx(reinterpret_cast<PVOID>(imageAddress), mappedAsImage, IMAGE_DIRECTORY_ENTRY_DEBUG, &dirEntrySize, NULL));    size_t debugEnd = reinterpret_cast<size_t>(debugDirectory) + dirEntrySize;
    while(reinterpret_cast<size_t>(debugDirectory) < debugEnd)
    {
        if(debugDirectory->Type == IMAGE_DEBUG_TYPE_CODEVIEW)
        {
            break;
        }
        ++debugDirectory;
    }
    CV_INFO_PDB70* information = reinterpret_cast<CV_INFO_PDB70*>(static_cast<DWORD>(imageAddress) + debugDirectory->AddressOfRawData);
    

    There’s more information here:
    http://www.debuginfo.com/articles/debuginfomatch.html

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

Sidebar

Related Questions

Im trying to obtain javascript .js files from a website using beautifulsoup. This is
I'm trying to obtain data using regular expressions from a html file, by implementing
I'm using Hibernate and JPA for a small project. Somehow when trying to obtain
I am trying to obtain the ip address from a text file so when
I'm trying to obtain the n-th elements from a list of tuples. I have
I am trying to obtain a variable from a different file type and import
Im trying to obtain the IP address of the user, current domain, and full
I'm trying to obtain the price from a field called DiscountMarkupPriceRate1 on my second
I am trying to obtain and transfer information from a HTML web form (through
I'm trying to obtain the keywords from an HTML page that I'm scraping with

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.