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. A "C" programming equivalent to Windows + R run dialog invokcation

A "C" programming equivalent to Windows + R run dialog invokcation

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
9 Posts 4 Posters 2 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.
  • S Offline
    S Offline
    samtoad
    wrote on last edited by
    #1

    I hope I'm in the right spot to ask this programming question. I'm looking for the "C" programming spec's that is equivalent to which the users invokes the windows 10 run dialog box by keystrokes. I like to see the option on my windows sidebar to click on. Is there a place(website) out on the internet that shows the ideas and some spec's and examples on how to put this simple programming idea, in "C", together. Any help sure be appreciated. Thanks,

    L 2 Replies Last reply
    0
    • S samtoad

      I hope I'm in the right spot to ask this programming question. I'm looking for the "C" programming spec's that is equivalent to which the users invokes the windows 10 run dialog box by keystrokes. I like to see the option on my windows sidebar to click on. Is there a place(website) out on the internet that shows the ideas and some spec's and examples on how to put this simple programming idea, in "C", together. Any help sure be appreciated. Thanks,

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hi,

      samtoad wrote:

      equivalent to which the users invokes the windows 10 run dialog box

      It's an undocumented function located in shell32.dll at ordinal 61. I think the function is named RunFileDlg if I remember correctly. Best Wishes, -David Delaune

      D 1 Reply Last reply
      0
      • L Lost User

        Hi,

        samtoad wrote:

        equivalent to which the users invokes the windows 10 run dialog box

        It's an undocumented function located in shell32.dll at ordinal 61. I think the function is named RunFileDlg if I remember correctly. Best Wishes, -David Delaune

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Randor wrote:

        ...in shell32.dll at ordinal 61.

        You're showing your age there, David. Looking at ordinal numbers inside of Windows DLLs is going back aways. Those were the good ol' days.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        L 1 Reply Last reply
        0
        • S samtoad

          I hope I'm in the right spot to ask this programming question. I'm looking for the "C" programming spec's that is equivalent to which the users invokes the windows 10 run dialog box by keystrokes. I like to see the option on my windows sidebar to click on. Is there a place(website) out on the internet that shows the ideas and some spec's and examples on how to put this simple programming idea, in "C", together. Any help sure be appreciated. Thanks,

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          What are you actually trying to do? Do you just want to run this dialog, or start some other process?

          S 1 Reply Last reply
          0
          • L Lost User

            What are you actually trying to do? Do you just want to run this dialog, or start some other process?

            S Offline
            S Offline
            samtoad
            wrote on last edited by
            #5

            Richard, all I want to do is just what windows 10 does, but access from the sidebar, instead of windows + R. Is there a programming way of doing it?? Thanks.

            D D L 3 Replies Last reply
            0
            • S samtoad

              Richard, all I want to do is just what windows 10 does, but access from the sidebar, instead of windows + R. Is there a programming way of doing it?? Thanks.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Access the Run dialog from the sidebar? What is the sidebar?

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

              1 Reply Last reply
              0
              • S samtoad

                Richard, all I want to do is just what windows 10 does, but access from the sidebar, instead of windows + R. Is there a programming way of doing it?? Thanks.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Run the command line:

                rundll32 shell32.dll,#61

                Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                Dave Kreskowiak

                1 Reply Last reply
                0
                • D David Crow

                  Randor wrote:

                  ...in shell32.dll at ordinal 61.

                  You're showing your age there, David. Looking at ordinal numbers inside of Windows DLLs is going back aways. Those were the good ol' days.

                  "One man's wage rise is another man's price increase." - Harold Wilson

                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                  "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  David Crow wrote:

                  You're showing your age

                  I hope that I have a few more years left in this worn out body. :)

                  David Crow wrote:

                  Looking at ordinal numbers inside of Windows DLLs is going back aways. Those were the good ol' days.

                  There isn't a more accurate way to describe that particular DLL export. It's exported from shell32 with the NONAME attribute.

                  D:\Tools>dumpbin /exports "C:\Windows\System32\shell32.dll"
                  ...
                  61 00102C60 [NONAME]
                  ...

                  In fact it looks like there are 355 additional exports in shell32 that are NONAME (only exported by ordinal) Best Wishes, -David Delaune

                  1 Reply Last reply
                  0
                  • S samtoad

                    Richard, all I want to do is just what windows 10 does, but access from the sidebar, instead of windows + R. Is there a programming way of doing it?? Thanks.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Well, I am beginning to wonder if you put any effort into searching yourself? I searched codeproject and found this article: Using the Windows RunFile Dialog - The Documented and Undocumented Way [^]

                    samtoad wrote:

                    access from the sidebar

                    I think you mean from a Sidebar Gadget[^]? If so then you might be better off asking in the javascript forum. According to this documentation IShellDispatch.FileRun method[^] you should be able to do this in javascript. Note that I don't have any experience whatsoever in creating these sidebar gadgets but I *think* you should be able to edit the "Hello World"[^] gadget and add:

                        var objShell = new ActiveXObject("shell.application");
                        objshell.FileRun();
                    

                    I would suggest the javascript forum[^] or maybe the Microsoft sidebar development forum[^].

                    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