在后台启动应用程序进程(Launch application process in the background)
我创建了一个监听键盘输入的Windows窗体应用程序。 当输入正确的输入命令时,它应该启动一个谷歌浏览器的实例,然后运行我开发的Chrome扩展。
我希望chrome进程在后台安静地运行,而其他前台进程尽可能运行。 或者如果这是不可能的,那么我希望能够在命令成功输入之前切换回前台处于活动状态的进程。
这是可能吗?
I have created a Windows Forms app that listens to keyboard input. When the correct input command is entered it should launch an instance of google chrome which will then run a chrome extension that I have developed.
I want the chrome process to run quietly in the background whilst other foreground processes run if possible. Or if this is not possible then I want to be able to swap back to the process that was active in the foreground before the command was successfully input.
Is this at all possible?
原文:https://stackoverflow.com/questions/48144780
最满意答案
使用GCC,您可以使用
-fno-builtin
(禁用所有内置函数)或-fno-builtin-strcpy
(只需禁用内置strcpy
)。With GCC, you can use the
-fno-builtin
(disable all builtins) or-fno-builtin-strcpy
(just disable builtinstrcpy
).