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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:30:10+00:00 2026-06-17T07:30:10+00:00

i downloaded this class http://www.codeproject.com/file/VersionInfo.asp i use it to get the file information from

  • 0

i downloaded this class http://www.codeproject.com/file/VersionInfo.asp

i use it to get the file information from a few programs i currently run.

It works fine when i want to information from the program i wrote, but i can’t get the file informations of “chrome” or my “visual studio” for example.

when i query the productName of my application i get “Todo:ProductName” because it is not set yet 😉

but when i query the productName of chrome.exe i just get “” nothing.

Does anynone know why?

Edit: i debugged a little and the probleme is here.

BOOL CFileVersionInfo::Open( IN LPCTSTR lpszFileName )
{  
if( lpszFileName == NULL )
    ASSERT_RETURN( FALSE );

Close();
if( !GetVersionInfo( lpszFileName ) || !QueryVersionTrans() )
    Close();

return m_bValid;
};

The GetVersionInfo( lpsz… ) does return 0 when there is “chrome.exe” entered

Edit 2:
Yes chrome.exe has an product name field.

example: chrome.exe
– File description: Google Chrome
– Type: Application
– File version: 23.0.1271.97
– Product NAme: Google Chrome
– Product Version: 23.0.1271.97
– Copyright: ..blabla…
– Size: 1.18MB
– Date modified: some_date
– Language: English
– Original Filename: chrome.exe

Edit 3:
How can I get the full path to the exe? I just have the process ID. At the moment iam looping over all processes and search for my processId.

Thanks so far for you answers 🙂

  • 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-17T07:30:11+00:00Added an answer on June 17, 2026 at 7:30 am

    How can I get the full path to the exe?

    Use OpenProcess() to get a HANDLE to the process and then use QueryFullProcessImageName() to obtain the full path of the exe.

    Remember to check the result of GetLastError() to determine the reason for failure.

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

Sidebar

Related Questions

I recently downloaded an event calendar from this link: http://www.asp.net/downloads/starter-kits/club/EventCalendar.zip I want to use
I have downloaded the sample code from this site for FTP Client http://www.lysesoft.com/products/andftp/index.html But
I have this library http://www.codeproject.com/KB/cs/globalhook.aspx I've downloaded it and compiled it to DLL. At
I've downloaded my accordion from here: http://www.snyderplace.com/demos/accordion.html and was told by my boss that
I tried a sample project about Hibernate Many-to-Many relationship downloaded from http://www.vaannila.com/hibernate/hibernate-example/hibernate-mapping-many-to-many-using-annotations-1.html Then I
I downloaded the bootstrap template from http://www.initializr.com/ My question is how do I keep
Hey guys, I've downloaded an auto-complete script in jQuery from formvega (http://www.fromvega.com) and I've
http://www.dscredstorm.com/getisbninfo.aspx I'm trying to use Amazon's api. I downloaded their example code, which is
I'm using code examples from this article by Rick Strahl: http://www.west-wind.com/weblog/posts/324917.aspx to make async
I have downloaded an example of SQLite from the following link http://www.codegod.com/Android-ListView-with-dynamic-Images-AID590.aspx SQLiteListActivity.java: package

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.