Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一行代码可以打开管理员所需的应用程序,该应用程序要求您在弹出的同意框中单击“确定”。
ShellExecute(Me.Handle, "open", "c:\myapp.exe", "", "", 5)
但是,当它运行应用程序时,同意框会最小化打开。通常,当您双击“MyApp.exe”时,它会直接显示,但是通过 ShellExecute 会最小化身份验证。我究竟做错了什么?
试试这个。
ShellExecute(NULL, "open", yourAppName, "", "", SW_SHOWNORMAL )
希望,它会解决你的问题。