Windows XP登录前如何执行C ++应用 [英] How to execute my C++ aplication before windows XP logon

查看:149
本文介绍了Windows XP登录前如何执行C ++应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经创建了一个C ++应用程序,并且希望它从Windows开始,以获得这种行为,我已经在Windows XP注册表中使用我的应用程序路径创建了一个密钥:LocalMachine/Software/Microsoft/Windows/CurrentVersion/Run. br/>
这工作正常,但是我希望该应用程序在Windows启动时运行,而无需用户登录.我读了一下,发现与Run键存在于同一个地方,一个叫做RunService的键可以满足我的需要,但是该键在Windows XP中不存在.我怎样才能做到这一点?是否有与RunService等效的键?


战车,
Filipe

Hi,

I''ve created an C++ application and I want it to start with windows, to obtain this behavior I''ve created an key with my app path in windows XP registry: LocalMachine/Software/Microsoft/Windows/CurrentVersion/Run.

This works fine however I want that this application runs at windows startup without the need of the user login. I read about it and i find out that exists in the same place as the Run key a key called RunService which does what I need but this key does not exits in windows XP. How can I do this? is there a key equivalent as RunService?


Tanks,
Filipe

推荐答案

您可以实现您的流程
作为使用SERVICE_AUTO_START参数创建的服务:):

http://msdn.microsoft.com/en-us/library/ms682450 (v = VS.85).aspx [
You could implement your process
as a service created with the SERVICE_AUTO_START parameter :) :

http://msdn.microsoft.com/en-us/library/ms682450(v=VS.85).aspx[^]


这篇关于Windows XP登录前如何执行C ++应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆