用到了一个未公开的函数..
声明:
BOOL WINAPI RunFileDlg(
HWND hwndOwner, // “运行”对话框父窗口句柄,如果为NULL,则父窗口为桌面。
HICON hIcon, // “运行”对话框中图标句柄,如果为NULL,则由系统提供默认图标。
LPCSTR lpstrDirectory, // 设置要运行的程序的当前目录,如果为NULL,则设置为程序所在目录。
LPCSTR lpstrTitle, // 指向“运行”对话框标题文本字符串,如果为NULL,则由系统提供默认标题。
LPCSTR lpstrDescription, // 指向“运行”对话框内容文本字符串,如果为NULL,则由系统提供默认内容。
UINT uFlags); // 如果为NULL,则显示系统默认的三个按钮。
位置:
shell32.dll!MAKEINTRESOURCEA(61)
其中uFlags参数的可选值为
RFF_NOBROWSE 0×01 Removes the browse button.
RFF_NODEFAULT 0×02 No default item selected.
RFF_CALCDIRECTORY 0×04 Calculates the working directory from the file name.
RFF_NOLABEL 0×08 Removes the edit box label.
RFF_NOSEPARATEMEM 0×20 Removes the Separate Memory Space check box (Windows NT only).