在windows7上从windows Service执行Notepad.exe时出现问题
Issue executing Notepad.exe from windows Service on windows7
我已经创建了windows服务,它在noteapad.exe上执行ShellExecute命令。当服务安装时,notepad.exe被执行,只在任务管理器中看到。记事本.exe窗口不可见。谁能让我知道这可能是什么问题,我已经在Windows XP上试过了,它工作得很好。
下面是ShellExecute 的代码::ShellExecute(NULL,
NULL,
_T("notepad.exe"),
_T("C:\Users\testuser\Desktop\review_comments.txt"),
_T("C:\Windows\System32"),
SW_SHOWMAXIMIZED);
Thanks in advance
从Vista和Windows Server 2003开始,服务不再允许显示窗口。(执行的记事本仍然属于服务…)
hth
马里奥相关文章:
- 警告处理为错误这里有什么问题
- 最小硬币更换问题(自上而下方法)
- 为"adjacent"变量赋值时出现问题
- 我的神经网络不起作用 [XOR 问题]
- 在Ubuntu 16.04上安装Cilk时出现问题
- C++我的数学有什么问题,为什么我的代码不能正确循环
- 编译包含字符串的代码时遇到问题
- 父进程意外被子 cmd 杀死.exe运行 java jar 的进程 - WINDOWS 7 问题 - C++
- 执行用 C++ 编写的.exe(使用 mingw 编译器)时出现问题
- 显示和隐藏Windows 10屏幕键盘(osk.exe)时遇到问题
- DLL和EXE中具有相同名称和父级但实现不同的类中的问题
- QWT MOC问题(找不到MOC.EXE)
- 提高.测试 在 dll 中使用 BOOST 测试用例和在 exe 中的运行器中出现问题
- Project1.exe已停止工作.我似乎找不到我的SDL代码到底出了什么问题
- cl.exe和ml.exe的问题
- 在windows7上从windows Service执行Notepad.exe时出现问题
- 在另一台计算机上运行用Visual Studio构建的EXE文件时出现问题
- 这段代码有什么问题,gcc不会将其转换为.exe
- Q执行带参数的exe时出现进程问题
- 针对c库(GNU)链接c++exe时出现问题