Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How do I get an application's .exe name

How do I get an application's .exe name

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiontutorialworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jennifer Pinkton
    wrote on last edited by
    #1

    I have an application, prog B, that starts minimized. Another program, let's say winamp, currently has the focus. My program - prog B should be able to retrieve the .exe name based on whichever application that currently has the focus, in this case, winamp. I'm not sure how to go about and tackle this problem. Can somebody please help me out? Environment - Windows 2000 Thanks in advance,

    B 1 Reply Last reply
    0
    • J Jennifer Pinkton

      I have an application, prog B, that starts minimized. Another program, let's say winamp, currently has the focus. My program - prog B should be able to retrieve the .exe name based on whichever application that currently has the focus, in this case, winamp. I'm not sure how to go about and tackle this problem. Can somebody please help me out? Environment - Windows 2000 Thanks in advance,

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      The GetWindowModuleFileName function retrieves the full path and file name of the module associated with the specified window handle.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups