A "C" programming equivalent to Windows + R run dialog invokcation
-
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,
-
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,
-
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
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
-
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,
-
What are you actually trying to do? Do you just want to run this dialog, or start some other process?
-
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.
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
-
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.
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 -
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
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
-
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.
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[^].