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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:55:44+00:00 2026-05-14T08:55:44+00:00

I cannot find how I’m supposed to handle file opening in my program. For

  • 0

I cannot find how I’m supposed to handle file opening in my program. For example if the user does Open With … myprogram.exe then how do I handle that and do something with it. which WM_Message is sent?
Thanks

*no I mean if you have sometext.txt and openwith Notepad.exe, it magically displays the text, so how can I know if someone used Open With.

  • 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-14T08:55:45+00:00Added an answer on May 14, 2026 at 8:55 am

    There is no message sent, you will probably get it on the commandline, use argc/argv or GetCommandLine()

    The shell first checks for a NoOpenWith value in KCR\Applications\myprogram.exe if it is not there, your app is listed in the open with dialog.
    If the user chooses your app, the shell will use the command listed under HKCR\Applications\myprogram.exe\shell\open\Command if it exists (You could then assign DDE or Droptarget properties if that is how you want to handle the “incoming files”)

    If you really want to know if openwith was used, I guess you could register a command under the shell key that executes your app with a command line like myprogram.exe /openwith “%1”

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

Sidebar

Related Questions

Cannot find any example on Google.
I cannot find the solution for this problem, here is the simplified example: On
I cannot find a simple example about my question above: how can i detect
I cannot find fitz.c file in mupdf folders. I can find fitz.h but, for
I cannot find any example on how to use the pattern= parameter in list.files
I cannot find any documentation on the kflushd such as what it does exactly,
I cannot find any example of maven pom where the javadoc plugin is used
I cannot find a way that easily lets me create a new file, treat
I simply cannot find any documentation on what I'm supposed to include in my
I cannot find anything informative about the purpose of this flag. Does anyone know?

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.