检测系统启动事件
我想执行一个仅在Windows系统启动时触发的程序,这里的启动并不意味着程序启动。我可以做些什么来触发我的程序吗?如果可能的话,我想避免弄乱注册表。我使用的是delphi 2010。
I would like to execute a procedure that should be fired only upon windows system startup, and startup here does not mean program startup. Is there anything that I can do to trigger my procedure. If possible, i would like to avoid messing with the registry. I am using delphi 2010.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多选项,但所有选项都涉及需要管理员权限的设置。这些选项包括:
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
。这将在交互式用户登录时执行。启动时
。There are many options, but all will involve settings that require admin rights. These options include:
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
. This will execute when an interactive user logs on.At startup
.