Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than shell32, prefix the name with the module name and a period.
SHRunFileDialog (shell32)
.
Opens the typical 'Run' dialog used by the start menu, without explorer.exe.
[Flags()]
public enum RunFileDialogFlags : uint
{
/// <summary>
/// Don't use any of the flags (only works alone)
/// </summary>
None = 0x0000,
/// <summary>
/// Removes the browse button
/// </summary>
NoBrowse = 0x0001,
/// <summary>
/// No default item selected
/// </summary>
NoDefault = 0x0002,
/// <summary>
/// Calculates the working directory from the file name
/// </summary>
CalcDirectory = 0x0004,
CalcDirectory = 0x0003,
/// <summary>
/// Removes the edit box label
/// </summary>
NoLabel = 0x0008,
/// <summary>
/// Removes the seperate memory space checkbox (Windows NT only)
/// </summary>
NoSeperateMemory = 0x0020
}
Alternative Managed API:
Use the Documented IShellDispatch->Run(), but this can be a pain in C# if you are pressed for time.
Notes:
None.
Tips & Tricks:
You can pass zero or more flags to the function. If the function fails, check your character encoding. It seems that it expects Unicode characters by default.
path = "C:\\WiNDOWS";
dialogtitle = "Start Application";
dialogtext = "Enter the name of the program file you wish to run. You may also enter in URLs and items found in your path and applications list.";
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).